This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 244

Summary: no ColsAtCompileTime in Eigen::Transform, needed by inverse_impl
Product: Eigen Reporter: Bob <atilla000>
Component: Core - expression templatesAssignee: Nobody <eigen.nobody>
Status: NEW ---    
Severity: Unknown CC: gael.guennebaud, jacob.benoit.1
Priority: ---    
Version: 3.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
VC10 compilation errors none

Description Bob 2011-04-05 14:08:13 UTC
Created attachment 151 [details]
VC10 compilation errors

The below code produces some compile time errors, of which this is probably the most important one:

1> bla\eigen\src/LU/Inverse.h(300): error C2039: 'ColsAtCompileTime' : is not a member of 'Eigen::Transform<_Scalar,_Dim,_Mode>'

The required information is available however, but not in Transform::ColsAtCompileTime, but in Transform::MatrixType::ColsAtCompileTime

The other errors look like they are being caused by the same problem.

Complete error in attachment.

Code:
------------------------------------
#include <Eigen/Core>
#include <Eigen/Geometry>

Eigen::Matrix4f inverse(Eigen::Matrix4f& mat){
	return mat.inverse();
}

int main() {

	Eigen::Matrix4f transformMatrix;

	// does not work
	auto invMatrix = transformMatrix.inverse();
	Eigen::Affine3f aff(invMatrix);

	// works as expected
	Eigen::Affine3f aff2(inverse(transformMatrix));
}
Comment 1 Nobody 2019-12-04 10:37:30 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/244.