Re: [eigen] eigen3 migration |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
Okay, after deleting millions of lines of code, I managed to reduce it
to this:
#define Success 0 /* everything's okay */
#include <eigen3/Eigen/Core>
And this define comes from X.h, so it's rather standard
Cheers
Benjamin
On 04/13/2011 06:02 PM, Benjamin Schindler wrote:
> An Update - I've got a reproducible "minimal" testcase, compile the
> attached file(s).
>
> That used to work with eigen2, so I have the impression that this is an
> eigen bug
>
> Cheers
> Benjamin
>
> On 04/13/2011 05:43 PM, Benjamin Schindler wrote:
>> Hi - I just started the migration to eigen3 on our rather large project.
>> So I started with the suggested migration path and added
>> -DEIGEN2_SUPPORT_STAGE10_FULL_EIGEN2_API
>>
>> Most of the files build just fine, however, I have some problems with
>> other ones, see the attached output for one of the problematic files.
>>
>> I have no idea whatsoever I can do about this. Does somebody have an
>> idea what's going on here? Posting source code is kindof hard as it
>> involves lots of files being included.
>>
>> The only problematic part in the code I can think of is this here (which
>> worked with eigen2), is that still legal?
>>
>> namespace Eigen {
>>
>> // Not required for eigen3 - generic traits are available
>> /*
>> template<> struct NumTraits<uchar>
>> {
>> typedef uchar Real;
>> typedef float FloatingPoint;
>> enum {
>> IsComplex = 0,
>> HasFloatingPoint = 0,
>> ReadCost = 1,
>> AddCost = 1,
>> MulCost = 1
>> };
>> };
>>
>>
>> template<> struct NumTraits<uint>
>> {
>> typedef uint Real;
>> typedef float FloatingPoint;
>> enum {
>> IsComplex = 0,
>> HasFloatingPoint = 0,
>> ReadCost = 1,
>> AddCost = 1,
>> MulCost = 1
>> };
>> };
>> */
>>
>> typedef Matrix<uchar, 4, 1> Vector4uc;
>> typedef Matrix<uchar, 3, 1> Vector3uc;
>> typedef Matrix<uchar, 2, 1> Vector2uc;
>> typedef Matrix<uint, 3, 1> Vector3ui;
>> typedef Matrix<uint, 4, 1> Vector4ui;
>> typedef Matrix<float, 1, 1> Matrix1f;
>> typedef Matrix<double, 1, 1> Matrix1d;
>> typedef Matrix<int, 1, 1> Matrix1i;
>> }
>>
>>
>> Thanks
>> Benjamin
>