Re: [eigen] Matrix with custom type ?

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


One additional precision: for certain features you also need to specialize the 
math functions in MathFunctions.h. At least ei_abs(), ei_abs2(), ei_conj() 
are very important. ei_conj() is trivial for non-complex types.

Benoit

On Thursday 24 April 2008 10:20:10 Gael Guennebaud wrote:
> 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.


Attachment: signature.asc
Description: This is a digitally signed message part.



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