Skip to content

Commit 90bf977

Browse files
authored
Merge pull request #157 from dotChris90/master
Fix : Ironpython was still using old Numpy class
2 parents 8348e9b + 5a7a5da commit 90bf977

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/NumSharp.Python/numpy.array.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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 :

0 commit comments

Comments
 (0)