Re: [eigen] Initial implementation of tensor support

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


> I've also a question regarding the ColMajor/RowMajor option. I guess they
> rather mean something like forward/backward storage order, but is that
> option really needed??

One feature I've seen in ndarray (http://ndarray.googlecode.com) for
multidimensional arrays is a template parameter indicating the number
of dimensions which are contiguously stored in row-major order
(http://ndarray.googlecode.com/svn/doc/index.html).  This permits
matching algorithm striding using compile-time dispatch where
possible.  I always thought using a signed template parameter would
permit tracking the analogous column-major guarantee by reversing the
sign.  If the template parameter was 0, then no promises are made
about its contiguousness.

- Rhys



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