Re: [eigen] eigen and boost::multi_array

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


> I was trying to use boost::multi_array in a project where I am already using
> eigen2...
>
> typedef multi_array<double, 2> array_type;
> array_type scores(extents[1][1]);
> compiler error: ‘extents’ is not a type
> I guess it happens because of eigen ..

My guess is that the global MultiArray extent_gen instance is being
shadowed or clobbered somehow:
http://www.boost.org/doc/libs/1_44_0/libs/multi_array/doc/reference.html#id906792

Workaround is probably to instantiate a local extent_gen instance as
suggested in the link above.

- Rhys



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