File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,31 +18,31 @@ public static dynamic array(IList<object> list, string dataType)
1818 case "Double" :
1919 {
2020 double [ ] array = list . Select ( x => ( double ) x ) . ToArray ( ) ;
21- returnArray = new NumPyGeneric < double > ( ) . array ( array ) ;
21+ returnArray = NumPy . array ( array ) ;
2222 break ;
2323 }
2424 case "Float" :
2525 {
2626 float [ ] array = list . Select ( x => ( float ) x ) . ToArray ( ) ;
27- returnArray = new NumPyGeneric < float > ( ) . array ( array ) ;
27+ returnArray = NumPy . array ( array ) ;
2828 break ;
2929 }
3030 case "Int32" :
3131 {
3232 System . Int32 [ ] array = list . Select ( x => ( System . Int32 ) x ) . ToArray ( ) ;
33- returnArray = new NumPyGeneric < int > ( ) . array ( array ) ;
33+ returnArray = NumPy . array ( array ) ;
3434 break ;
3535 }
3636 case "Int64" :
3737 {
3838 System . Int64 [ ] array = list . Select ( x => ( System . Int64 ) x ) . ToArray ( ) ;
39- returnArray = new NumPyGeneric < System . Int64 > ( ) . array ( array ) ;
39+ returnArray = NumPy . array ( array ) ;
4040 break ;
4141 }
4242 case "Complex" :
4343 {
4444 System . Numerics . Complex [ ] array = list . Select ( x => ( System . Numerics . Complex ) x ) . ToArray ( ) ;
45- returnArray = new NumPyGeneric < System . Numerics . Complex > ( ) . array ( array ) ;
45+ returnArray = NumPy . array ( array ) ;
4646 break ;
4747 }
4848 default :
You can’t perform that action at this time.
0 commit comments