mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add conjugateIf<bool> members to DesneBase, TriangularView, SelfadjointView, and make PartialPivLU use it.
This commit is contained in:
@@ -143,6 +143,9 @@ template<typename MatrixType> void adjoint(const MatrixType& m)
|
||||
RealVectorType rv1 = RealVectorType::Random(rows);
|
||||
VERIFY_IS_APPROX(v1.dot(rv1.template cast<Scalar>()), v1.dot(rv1));
|
||||
VERIFY_IS_APPROX(rv1.template cast<Scalar>().dot(v1), rv1.dot(v1));
|
||||
|
||||
VERIFY( is_same_type(m1,m1.template conjugateIf<false>()) );
|
||||
VERIFY( is_same_type(m1.conjugate(),m1.template conjugateIf<true>()) );
|
||||
}
|
||||
|
||||
template<int>
|
||||
|
||||
Reference in New Issue
Block a user