Re: [eigen] Vector
• To: eigen@xxxxxxxxxxxxxxxxxxx
• Subject: Re: [eigen] Vector
• From: Mathieu Dutour <mathieu.dutour@xxxxxxxxx>
• Date: Wed, 26 Nov 2014 12:21:09 +0100
• Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=18S1n9z9E9Yo7+WoJq7/bkVLavH37qLRCGtf6flIxDM=; b=CXOQsyaSBApZbuwSzXU2ghPwvnY7DeKnqYgZCKprF97E7aQAkXdWTY4KbyTD1mxCVj bKf6xk44i/D1SGVwPKeVy4vxBrFXTv03h2Y+JbTWG4iVMk2GKqO0Z/dwHuxisZgH70sd bNoruN411PzWEmD2NmHW5BAZrEJA6FyruTYd/YRaiXqC1iQPH2B0fv3/NpoJnq0rYOPy FE/zY6goE2PIZpvwcEzmje91o5pXm3LA0IvxTGGRKAT3p4+U9+EOj9TomASpY24nT5ph oefluOKNLokcvVBAzOE7YulRR/ttALSwIE3m8OMdg4bgKZ27S8zkXeKNOKNjMDTFEq+Q c6mw==

Thank you very much for the hint. Yes, the info was there.

So, Eigen is like Matlab actually: Vectors are actually matrices.

Mathieu

On Wed, Nov 26, 2014 at 10:55 AM, Márton Danóczy wrote:
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 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/