Re: [eigen] Matrix with custom type ?

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



Hi Boris,

of course you can. What you have to do is to specialize the Eigen::NumTraits<> structure for your type.
See the NumTraits.h file.

Gael.

On Thu, Apr 24, 2008 at 9:40 AM, Boris Mansencal <boris.mansencal@xxxxxxxx> wrote:
Hi,

I am totally new to eigen.
I have a simple question : is it possible to use Matrix from eigen(2) with a custom type ?
I would like to use it for custom types for which I can define arithmetic operations...

Thanks a lot,

Boris.






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