This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 244 - no ColsAtCompileTime in Eigen::Transform, needed by inverse_impl
Summary: no ColsAtCompileTime in Eigen::Transform, needed by inverse_impl
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - expression templates (show other bugs)
Version: 3.0
Hardware: All All
: --- Unknown
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 14:08 UTC by Bob
Modified: 2019-12-04 10:37 UTC (History)
2 users (show)



Attachments
VC10 compilation errors (3.40 KB, text/plain)
2011-04-05 14:08 UTC, Bob
no flags Details

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.

Note You need to log in before you can comment on or make changes to this bug.