Beispiel #1
0
        public void Arange_IntTypeStopArgOnly_ReturnIntegerTypeNdArray()
        {
            // arrange & action
            var array = NumCs.Arange(10);

            // assert
            Assert.IsInstanceOfType(array, typeof(NdArray <int>));
        }
Beispiel #2
0
        public void Arange_IntOneElement_ReturnIntegerTypeNdArray()
        {
            // arrange & action
            var array = NumCs.Arange(1);

            // assert
            Assert.IsInstanceOfType(array, typeof(NdArray <int>));
        }
Beispiel #3
0
        public void Arange_DoubleTypeStopArgOnly_ReturnDoubleTypeNdArray()
        {
            // arrange & action
            var array = NumCs.Arange(10.0);

            // assert
            Assert.IsInstanceOfType(array, typeof(NdArray <double>));
        }
Beispiel #4
0
        public void Arange_IntTypeFullArgs_ReturnIntegerTypeNdArray()
        {
            // arrange & action
            var array = NumCs.Arange(0, 10, 1);

            // assert
            Assert.IsInstanceOfType(array, typeof(NdArray <int>));
        }
Beispiel #5
0
        public void Arange_DoubleTypeFullArgs_ReturnDoubleTypeNdArray()
        {
            // arrange & action
            var array = NumCs.Arange(0.0, 10.0, 1.0);

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