Skip to content

Commit d6f09e6

Browse files
committed
test/custom: fix norm call
1 parent 1b3d12e commit d6f09e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unittest/python/test_user_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def test(dtype):
4545
assert np.isclose(mat2.astype(np.double), mat2_ref).all()
4646

4747
vec = np.ones((rows,), dtype=dtype)
48-
norm = np.norm(vec)
49-
norm_ref = np.norm(vec.astype(np.double))
48+
norm = np.linalg.norm(vec)
49+
norm_ref = np.linalg.norm(vec.astype(np.double))
5050
assert norm == norm_ref
5151

5252

0 commit comments

Comments
 (0)