Commit e71f3e1a authored by René Fritze's avatar René Fritze Committed by René Fritze

[test] switch test_project_array to hypothesis

parent 2d220a24
......@@ -192,10 +192,10 @@ def test_almost_equal_wrong_ind(compatible_vector_array_pair):
almost_equal(c1[ind1], c2[ind2], norm=n)
def test_project_array():
U = NumpyVectorSpace.from_numpy(np.random.random((2, 10)))
basis = NumpyVectorSpace.from_numpy(np.random.random((3, 10)))
def test_project_array(bases):
U = bases[0][:-2]
basis = bases[1]
U_p = project_array(U, basis, orthonormal=False)
onb = gram_schmidt(basis)
U_p2 = project_array(U, onb, orthonormal=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment