Re: [eigen] Vector |

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

*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 <marton78@xxxxxxxxx> wrote:

Mathieu,I can cordially recommend you to read the excellent documentation at http://eigen.tuxfamily.org/doxIn this particular case, what you are looking for istemplate <typename T>using MyVector = Eigen::Matrix<T, Eigen::Dynamic, 1>;MartonOn 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::Matrixtype successfully. This will allow me to progressively simplify mycode.In particular I usetemplate <typename T> usingMyMatrix=Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic>;to get the kind of matrix I want: with template type and of variablesize.However, I expected to be able to writeEigen::Vector<T,Eigen::Dynamic>but this type seems missing. Is there a reason for that ?Thank you in advance for any help,Mathieu

**References**:**[eigen] Vector***From:*Mathieu Dutour

**Re: [eigen] Vector***From:*Márton Danóczy

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Vector** - Next by Date:
**[eigen] Block sparse matrices and std vector compilation error** - Previous by thread:
**Re: [eigen] Vector** - Next by thread:
**[eigen] Block sparse matrices and std vector compilation error**

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