Re: [eigen] Feature request for array

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


On Sun, Jan 10, 2010 at 11:58 AM, Jinglei Hu <jingleihu@xxxxxxxxx> wrote:
The name of Array class in Eigen is somewhat misleading. E.g., Array3d gives you a one dimensional array with 3 elements instead of a 3-D array like A[i][j][k].

This is unlikely to change. It is a result from the naming of our matrix and vector typedefs. The number represents the size and the 'd' the data-type, here double. The capital letter 'X' as opposed to numbers indicates dynamically sized objects as opposed to fixed size ones.

Eigen does not support anything but two-dimensional objects, i.e. it's either a vector or a matrix. AFAIK, there are currently no plans in supporting containers for arbitrary dimensions. Nonetheless, based on the traits supported by Eigen it is possible for you to implement support for something like e.g.

Matrix< Vector2d, Dynamic, Dynamic >

I hope that helps a bit.

Regards,
Hauke


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