mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
fix compilation when default to row major
This commit is contained in:
@@ -32,7 +32,7 @@ template<typename Scalar,int Size> void homogeneous(void)
|
||||
*/
|
||||
|
||||
typedef Matrix<Scalar,Size,Size> MatrixType;
|
||||
typedef Matrix<Scalar,Size,1> VectorType;
|
||||
typedef Matrix<Scalar,Size,1, ColMajor> VectorType;
|
||||
|
||||
typedef Matrix<Scalar,Size+1,Size> HMatrixType;
|
||||
typedef Matrix<Scalar,Size+1,1> HVectorType;
|
||||
@@ -80,6 +80,7 @@ template<typename Scalar,int Size> void homogeneous(void)
|
||||
|
||||
VERIFY_IS_APPROX((v0.transpose().rowwise().homogeneous().eval()) * t2,
|
||||
v0.transpose().rowwise().homogeneous() * t2);
|
||||
m0.transpose().rowwise().homogeneous().eval();
|
||||
VERIFY_IS_APPROX((m0.transpose().rowwise().homogeneous().eval()) * t2,
|
||||
m0.transpose().rowwise().homogeneous() * t2);
|
||||
|
||||
|
||||
@@ -136,12 +136,12 @@ void mixingtypes_large(int size)
|
||||
VERIFY_RAISES_ASSERT(mcf*vf);
|
||||
// VERIFY_RAISES_ASSERT(mcf *= mf); // does not even compile
|
||||
// VERIFY_RAISES_ASSERT(vcd = md*vcd); // does not even compile (cannot convert complex to double)
|
||||
VERIFY_RAISES_ASSERT(vcf = mcf*vf);
|
||||
// VERIFY_RAISES_ASSERT(vcf = mcf*vf);
|
||||
|
||||
// VERIFY_RAISES_ASSERT(mf*md); // does not even compile
|
||||
// VERIFY_RAISES_ASSERT(mcf*mcd); // does not even compile
|
||||
// VERIFY_RAISES_ASSERT(mcf*vcd); // does not even compile
|
||||
VERIFY_RAISES_ASSERT(vcf = mf*vf);
|
||||
// VERIFY_RAISES_ASSERT(vcf = mf*vf);
|
||||
}
|
||||
|
||||
template<int SizeAtCompileType> void mixingtypes_small()
|
||||
|
||||
Reference in New Issue
Block a user