示例#1
0
        public void Zeros_DoubleTypeVector_ReturnDoubleTypeNdArray()
        {
            // arrange & action
            var array = NumCs.Zeros <double>(new[] { 2, 3, 4, 5 });

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

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