Re: [eigen] Vector

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


Mathieu,

I can cordially recommend you to read the excellent documentation at http://eigen.tuxfamily.org/dox

In this particular case, what you are looking for is

  template <typename T>
  using MyVector = Eigen::Matrix<T, Eigen::Dynamic, 1>;

Marton


On 26 November 2014 at 08:56, Mathieu Dutour <mathieu.dutour@xxxxxxxxx> wrote:
Dear all,

thank you for previous help I managed to use the Eigen::Matrix
type successfully. This will allow me to progressively simplify my
code.

In particular I use
  template <typename T> using 
  MyMatrix=Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic>;
to get the kind of matrix I want: with template type and of variable
size.

However, I expected to be able to write
       Eigen::Vector<T,Eigen::Dynamic>
but this type seems missing. Is there a reason for that ?

Thank you in advance for any help,

  Mathieu



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