Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7c5750ab authored by hhakim's avatar hhakim
Browse files

Increase error tol in EigTJ test.

parent 4e5d2fa3
No related branches found
No related tags found
No related merge requests found
......@@ -96,8 +96,8 @@ void test_eigentransform(Faust::@GIVENS_CLASS@ /*EigTJ<SCALAR,DEVICE,SCALAR2> or
cout << "Error relatively to Fourier matrix (computed with matlab eig()):" << endl;
cout << tmp.norm()/U.norm() << endl;
cout << "matlab err: " << err1 << endl;
assert(Faust::fabs(tmp.norm()/U.norm()-err1)/err1 < ERR_OK_TRESHOLD*60);
OK_ASSERT("Relative error ||Uhat-U||/||U|| is the same as Matlab's (relative precision: " << ERR_OK_TRESHOLD*60 << ").");
assert(Faust::fabs(tmp.norm()/U.norm()-err1)/err1 < ERR_OK_TRESHOLD*90);
OK_ASSERT("Relative error ||Uhat-U||/||U|| is the same as Matlab's (relative precision: " << ERR_OK_TRESHOLD*90 << ").");
}
template<typename SCALAR, FDevice DEVICE, typename SCALAR2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment