Skip to content
Snippets Groups Projects
Commit 2cb550a7 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

Bugfix: use the Riemannian metric to test for orthonormality

[[Imported from SVN: r9198]]
parent 5068e43e
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ void testOrthonormalFrame(const TargetSpace& a) ...@@ -106,7 +106,7 @@ void testOrthonormalFrame(const TargetSpace& a)
for (size_t i=0; i<spaceDim; i++) for (size_t i=0; i<spaceDim; i++)
for (size_t j=0; j<spaceDim; j++) for (size_t j=0; j<spaceDim; j++)
assert( std::fabs(B[i]*B[j] - (i==j)) < 1e-10 ); assert( std::fabs(a.metric(B[i],B[j]) - (i==j)) < 1e-10 );
} }
template <class TargetSpace> template <class TargetSpace>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment