This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] TopLeft corner

Tags: None
(comma "," separated)
mpmcl
Registered Member
Posts
19
Karma
0

[SOLVED] TopLeft corner

Fri Jun 26, 2009 7:41 pm
I am using eigen 2.0.2 in an Xcode project with
#define EIGEN_DEFAULT_TO_ROW_MAJOR 1
in a common prefix header plus
#include "../Eigen/Core"
#import "../Eigen/LU" // Objective-C++
USING_PART_OF_NAMESPACE_EIGEN
as well.

In the online Tutorial, it states that
mat1.corner(TopLeft)
should be legal but I had to change this to
mat1.corner(Eigen::TopLeft)
to satisfy the compiler.

is this as it should be?

I have the same question wrt execution time. In debug mode, my runtime is about 25x the runtime with -O3 optimization and NDEBUG turned on! This seems excessive. [FWIW, the runtime on an Intel Mac is significantly faster than on a PPC Mac.]
User avatar
bjacob
Registered Member
Posts
658
Karma
3

RE: TopLeft corner

Fri Jun 26, 2009 7:52 pm
mpmcl wrote:I am using eigen 2.0.2 in an Xcode project with
#define EIGEN_DEFAULT_TO_ROW_MAJOR 1
in a common prefix header plus
#include "../Eigen/Core"
#import "../Eigen/LU" // Objective-C++
USING_PART_OF_NAMESPACE_EIGEN
as well.

In the online Tutorial, it states that
mat1.corner(TopLeft)
should be legal but I had to change this to
mat1.corner(Eigen::TopLeft)
to satisfy the compiler.

is this as it should be?


Yes. TopLeft is in namespace Eigen.

I have the same question wrt execution time. In debug mode, my runtime is about 25x the runtime with -O3 optimization and NDEBUG turned on! This seems excessive.


This is how it is with heavy c++ code. We've been experiencing the same. But -O2 is in many cases enough.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]