Skip to content

Commit ff74d80

Browse files
author
dotchris90
committed
Fix : now work with non generic
1 parent 24e7895 commit ff74d80

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/NumSharp.Benchmark/np.amin.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ namespace NumSharp.Benchmark
1212
[MinColumn, MaxColumn, MeanColumn, MedianColumn]
1313
public class npamin
1414
{
15-
private NumPyGeneric<double> np;
16-
private NDArrayGeneric<double> nd;
15+
private NumPy np;
16+
private NDArray nd;
1717

1818
[GlobalSetup]
1919
public void Setup()
2020
{
21-
np = new NumPyGeneric<double>();
21+
np = new NumPy();
2222
nd = np.arange(1000 * 8 * 8 * 8).reshape(1000, 8, 8, 8);
2323
}
2424

@@ -31,9 +31,9 @@ public void min()
3131
[Benchmark]
3232
public void amin0axis()
3333
{
34-
var nd2 = new NDArrayGeneric<double>();
34+
var nd2 = new NDArray(typeof(double));
3535
nd2 = np.arange(1000 * 8 * 8 * 8).reshape(1000, 8, 8, 8);
36-
//var nd3 = nd2.AMin(0);
36+
var nd3 = nd2.amin(0);
3737
}
3838

3939
[Benchmark]

0 commit comments

Comments
 (0)