44using System . Linq ;
55using System . Numerics ;
66using System . Text ;
7+ using np = NumSharp . Core . NumPy ;
78
89namespace NumSharp . Core
910{
10- public partial class NumPy
11+ public static partial class NumPy
1112 {
12- public NDArray arange ( double stop )
13+ public static NDArray arange ( double stop )
1314 {
1415 return arange ( 0 , stop , 1 ) ;
1516 }
1617
17- public NDArray arange ( double start , double stop , double step = 1 )
18+ public static NDArray arange ( double start , double stop , double step = 1 )
1819 {
1920 if ( start > stop )
2021 {
@@ -34,12 +35,12 @@ public NDArray arange(double start, double stop, double step = 1)
3435 return nd ;
3536 }
3637
37- public NDArray arange ( int stop )
38+ public static NDArray arange ( int stop )
3839 {
3940 return arange ( 0 , stop , 1 ) ;
4041 }
4142
42- public NDArray arange ( int start , int stop , int step = 1 )
43+ public static NDArray arange ( int start , int stop , int step = 1 )
4344 {
4445 if ( start > stop )
4546 {
@@ -49,7 +50,7 @@ public NDArray arange(int start, int stop, int step = 1)
4950 int length = ( int ) Math . Ceiling ( ( stop - start + 0.0 ) / step ) ;
5051 int index = 0 ;
5152
52- var nd = new NDArray ( int32 , new Shape ( length ) ) ;
53+ var nd = new NDArray ( np . int32 , new Shape ( length ) ) ;
5354
5455 if ( nd . Data < int > ( ) is int [ ] a )
5556 {
0 commit comments