Re: [eigen] eigen3 migration |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] eigen3 migration
- From: Konstantin Tokarev <annulen@xxxxxxxxx>
- Date: Thu, 14 Apr 2011 17:04:23 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1302786265; bh=BhIdeLE3I3Dye2e1b724GGd2fios0U6M/8v52EW8WfQ=; h=From:To:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=uAj/LruGy0C+VAbtSXIX4TCwf2mNtXs3CztcHeBOG5+s33fhZOOlzHw/fvcVnVcq3 iwNvKIngmxtSDWUdiHvCsJSL7gCyDVA7k+jtovcbl0y8+y+XVJTh+o8UXsD+bizrvq t5eHbC0afok24EKbl8V3S6G19vsIMnE1KlmunGyM=
14.04.2011, 16:54, "Jitse Niesen" <jitse@xxxxxxxxxxxxxxxxx>:
> On Wed, 13 Apr 2011, Benjamin Schindler wrote:
>
>> 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
>
> It's pretty annoying that X.h has this #define. But I guess not including
> X.h is rather difficult.
>
> In Eigen3, Success is used as an enum constant to report that a
> computation was successful. The enum is defined as
>
> enum ComputationInfo {
> Success = 0,
> NumericalIssue = 1,
> NoConvergence = 2
> };
>
> We could rename Success to say ComputationSuccess, but that would break
> all user code that uses the Success constant. Perhaps an acceptable
> compromise would be to rename as above and also make Success available as
> an alternative name unless a Success macro already has been defined:
>
> enum ComputationInfo {
> ComputationSuccess = 0,
> #ifndef Success
> Success = 0,
> #endif
> NumericalIssue = 1,
> NoConvergence = 2
> };
>
> Any opinions?
Require including of X.h after eigen3/Eigen/Core
--
Regards,
Konstantin