mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add transposeInPlace (not optimized yet for rectangular matrix)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user