diff options
Diffstat (limited to 'test/adjoint.cpp')
-rw-r--r-- | test/adjoint.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/adjoint.cpp b/test/adjoint.cpp index 9a50e076e..18256a124 100644 --- a/test/adjoint.cpp +++ b/test/adjoint.cpp @@ -90,6 +90,14 @@ template<typename MatrixType> void adjoint(const MatrixType& m) // normalized() in order to produce a consistent result. VERIFY_IS_APPROX(VectorType::Random(rows).normalized().norm(), RealScalar(1)); } + + // check inplace transpose + m3 = m1; + m3.transposeInPlace(); + VERIFY_IS_APPROX(m3,m1.transpose()); + m3.transposeInPlace(); + VERIFY_IS_APPROX(m3,m1); + } void test_adjoint() |