Re: [eigen] mpreal + MatrixFunctions

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


 

you could define those functions included in a preprocessor block (#ifdef / #endif) using a symbol defined by mpfr, such as __MPFR_H, MPFR_VERSION_MAJOR or MPFR_VERSION_STRING. I would use the last one.

 

greetings,

--

Thomas Capricelli <orzel@xxxxxxxxxxxxxxx>

http://www.freehackers.org/thomas

 

On Sunday 21 August 2011 01:47:51 何震邦 wrote:

> Hi, all:

> I'd like to add mpreal compatibility into MatrixFunctions (i.e. when

> MatrixFunctions and MPRealSupport are both included, then it activates

> matrix functions for mpfr::mpreal), but I can't figure out a way to

> accomplish it, because it's impossible to just add a

> computeUV(mpfr::mpreal) since mpfr::mpreal may be not declared. On the

> other hand, if I code computeUV(mpfr::mpreal) at the other header, it's

> out of the question to add it into class MatrixExponential. Does anyone

> has suggestions?

>

> Sincerely,

> Chen-Pang He

>

>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/