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 fd0ed61 commit 1b3d12eCopy full SHA for 1b3d12e
unittest/python/test_user_type.py
@@ -44,6 +44,11 @@ def test(dtype):
44
mat2 = np.matmul(mat, mat.T)
45
assert np.isclose(mat2.astype(np.double), mat2_ref).all()
46
47
+ vec = np.ones((rows,), dtype=dtype)
48
+ norm = np.norm(vec)
49
+ norm_ref = np.norm(vec.astype(np.double))
50
+ assert norm == norm_ref
51
+
52
53
def test_cast(from_dtype, to_dtype):
54
np.can_cast(from_dtype, to_dtype)
0 commit comments