mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-20 03:44:26 +08:00
bug #1361: fix compilation issue in mat=perm.inverse()
This commit is contained in:
parent
a432fc102d
commit
c817ce3ba3
@ -45,6 +45,7 @@ class Inverse : public InverseImpl<XprType,typename internal::traits<XprType>::S
|
|||||||
public:
|
public:
|
||||||
typedef typename XprType::StorageIndex StorageIndex;
|
typedef typename XprType::StorageIndex StorageIndex;
|
||||||
typedef typename XprType::PlainObject PlainObject;
|
typedef typename XprType::PlainObject PlainObject;
|
||||||
|
typedef typename XprType::Scalar Scalar;
|
||||||
typedef typename internal::ref_selector<XprType>::type XprTypeNested;
|
typedef typename internal::ref_selector<XprType>::type XprTypeNested;
|
||||||
typedef typename internal::remove_all<XprTypeNested>::type XprTypeNestedCleaned;
|
typedef typename internal::remove_all<XprTypeNested>::type XprTypeNestedCleaned;
|
||||||
typedef typename internal::ref_selector<Inverse>::type Nested;
|
typedef typename internal::ref_selector<Inverse>::type Nested;
|
||||||
|
@ -109,6 +109,13 @@ template<typename MatrixType> void permutationmatrices(const MatrixType& m)
|
|||||||
rm.col(i).swap(rm.col(j));
|
rm.col(i).swap(rm.col(j));
|
||||||
VERIFY_IS_APPROX(rm, rp2.toDenseMatrix().template cast<Scalar>());
|
VERIFY_IS_APPROX(rm, rp2.toDenseMatrix().template cast<Scalar>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
// simple compilation check
|
||||||
|
Matrix<Scalar, Cols, Cols> A = rp;
|
||||||
|
Matrix<Scalar, Cols, Cols> B = rp.transpose();
|
||||||
|
VERIFY_IS_APPROX(A, B.transpose());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user