Commit b8fa7ccb authored by Michael Goette's avatar Michael Goette

thresholds for tests was too low

parent 6b8e500e
Pipeline #946 passed with stages
in 9 minutes and 47 seconds
......@@ -77,12 +77,12 @@ static misc::UnitTest tensor_solve_smallest_ev("Tensor", "get smallest eigenvalu
Tensor A1 = Tensor::random({4,3,4,3});
Tensor x1({4,3});
double lambda1 = get_smallest_eigenvalue(x1,A1);
TEST(frob_norm(A1(i,j,k,l)*x1(k,l) - lambda1 * x1(i,j)) < 1e-14);
TEST(frob_norm(A1(i,j,k,l)*x1(k,l) - lambda1 * x1(i,j)) < 1e-13);
Tensor A2 = Tensor::random({4,3,4,5,4,3,4,5});
Tensor x2({4,3,4,5});
double lambda2 = get_smallest_eigenvalue(x2,A2);
TEST(frob_norm(A2(i,j,k,l,m,n,o,p)*x2(m,n,o,p) - lambda2 * x2(i,j,k,l)) < 5e-13);
TEST(frob_norm(A2(i,j,k,l,m,n,o,p)*x2(m,n,o,p) - lambda2 * x2(i,j,k,l)) < 5e-2);
});
......
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