We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2ab314 commit 6feaa06Copy full SHA for 6feaa06
unittest/python/test_eigen_ref.py
@@ -52,12 +52,13 @@ def __init__(self):
52
super().__init__()
53
54
def call(self, mat):
55
- mat[:, :] = 1.0
+ n, m = mat.shape
56
+ mat[:, :] = np.arange(n * m).reshape(n, m)
57
58
modify = ModifyBlockImpl()
59
modify.modify(2, 3)
60
Jref = np.zeros((10, 10))
- Jref[:2, :3] = 1.0
61
+ Jref[:2, :3] = np.arange(6).reshape(2, 3)
62
63
assert np.array_equal(Jref, modify.J)
64
0 commit comments