[eigen] type of comma initializer ? |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: [eigen] type of comma initializer ?*From*: Helmut Jarausch <jarausch@xxxxxxxxxxxxxxxxxxx>*Date*: Wed, 12 Jan 2011 11:43:21 +0100

Hi, I'd like to put the initialization of a Matrix like Matrix<int,3,1> A; A << 1,2,3; into a function. I'd like to pass the object "1,2,3" as a parameter. What's the type of this expression. Or, what to fill in for <UNKNOWN_TYPE> below? void Mat_init(Matrix<int,3,1>& X, <UNKNOWN_TYPE>& Ini) { X << Ini; } Many thanks for a hint, Helmut.

**Follow-Ups**:**Re: [eigen] type of comma initializer ?***From:*Gael Guennebaud

**Messages sorted by:**[ date | thread ]- Prev by Date:
**[eigen] Eigen2 to Eigen3 Migration Path** - Next by Date:
**Re: [eigen] Eigen2 to Eigen3 Migration Path** - Previous by thread:
**Re: [eigen] Eigen2 to Eigen3 Migration Path** - Next by thread:
**Re: [eigen] type of comma initializer ?**

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