Exemple #1
0
        public void Ones_IntTypeVector_ReturnIntegerTypeNdArray()
        {
            // arrange & action
            var array = NumCs.Ones <int>(new[] { 2, 3, 4, 5 });

            // assert
            Assert.IsInstanceOfType(array, typeof(NdArray <int>));
        }
Exemple #2
0
        public void Ones_DoubleTypeVector_ReturnDoubleTypeNdArray()
        {
            // arrange & action
            var array = NumCs.Ones <double>(new[] { 2, 3, 4, 5 });

            // assert
            Assert.IsInstanceOfType(array, typeof(NdArray <double>));
        }