Re: [eigen] feature request: implement hybrid matrix class template

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


Hi Adrien,

Thanks for your quick reply and great help. I am not aware two last optional template parameters. Perhaps it is useful to typedef a type for two last optional template parameters to let user use optional parameters easily. e.g. HybridMatrix

// Definition of a 3x4 integral row-major matrix with maximum dimensions of 6x8
HybridMatrix<int,6UL,8UL> A( 3UL, 4UL );

Thanks,
Vincent

On 1 January 2018 at 18:39, Adrien Escande <adrien.escande@xxxxxxxxx> wrote:
Hi Vincent,

Happy new year as well.
This feature is already implemented through the two last optional template parameters of the Matrix class (see http://eigen.tuxfamily.org/dox/group__TutorialMatrixClass.html).
If you want a matrix M with maximum size (6,4) for example, you can write
Matrix<double, Dynamic, Dynamic, 0, 6, 4> M;    // 0 specifies a column-major storage

Cheers,
Adrien

On Mon, Jan 1, 2018 at 6:27 PM, Vincent Hui <vincenthk007@xxxxxxxxx> wrote:
Hi,

Happy new year, In 2018, can hybrid matrix class template be implemented in Eigen? Hybrid matrix class template combines the flexibility of a dynamically sized matrix with the efficiency and performance of a fixed size matrix.

Thanks,
Vincent




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