Skip to content

Commit f4e6e1c

Browse files
author
dotchris90
committed
Merge remote-tracking branch 'upstream/master'
2 parents 22dc43d + 4353804 commit f4e6e1c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

test/NumSharp.UnitTest/Creation/np.random.normal.Test.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ public void NormalDistributionTest()
2121

2222
var mean = np.mean(s);
2323
Assert.IsTrue(Math.Abs(mu - mean.Data<float>()[0]) < 0.01);
24-
Assert.IsTrue(s.shape[0] == 10);
25-
Assert.IsTrue(s.shape[1] == 100);
2624

2725
var std = s.std();
28-
Assert.IsTrue(Math.Abs(sigma - std.Storage.GetData<double>()[0] ) < 0.01);
26+
Assert.IsTrue(Math.Abs(sigma - std.Data<double>()[0] ) < 0.01);
27+
28+
Assert.IsTrue(s.shape[0] == 10);
29+
Assert.IsTrue(s.shape[1] == 100);
2930
}
3031
}
3132
}

test/NumSharp.UnitTest/Extensions/NdArray.ReShape.Test.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ public void ReshapeNegative()
8181
Assert.IsTrue(np.shape[0] == 10000);
8282
Assert.IsTrue(np.shape[1] == 3);
8383

84-
np.arange(15801033);
84+
/*np.arange(15801033);
8585
np.reshape(2531, 2081, 3);
8686
np.reshape(-1, 3);
8787
Assert.IsTrue(np.shape[0] == 5267011);
88-
Assert.IsTrue(np.shape[1] == 3);
88+
Assert.IsTrue(np.shape[1] == 3);*/
8989
}
9090
}
9191
}

0 commit comments

Comments
 (0)