[eigen] [FAQ] how to have an initialized static Matrix |

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

*To*: eigen <eigen@xxxxxxxxxxxxxxxxxxx>*Subject*: [eigen] [FAQ] how to have an initialized static Matrix*From*: Helmut Jarausch <jarausch@xxxxxxxxxxxxxxxxxxx>*Date*: Thu, 21 Mar 2013 10:30:47 +0100

Hi, unfortunately, Eigen's elegant initialization is an expression. Is there an "elegant" solution for this ugly code (within a function)

static const Eigen::Map<Eigen::Matrix<double,6,1>,0> C((double*)_C); What about Matrix with a constructor taking an initializer_list ? Many thanks for a hint, Helmut.

**Follow-Ups**:**Re: [eigen] [FAQ] how to have an initialized static Matrix***From:*Christoph Hertzberg

**Re: [eigen] [FAQ] how to have an initialized static Matrix***From:*Hauke Heibel

**Re: [eigen] [FAQ] how to have an initialized static Matrix***From:*Thomas Capricelli

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Is this a bug with Visual Studio ?** - Next by Date:
**Re: [eigen] [FAQ] how to have an initialized static Matrix** - Previous by thread:
**Re: [eigen] Is this a bug with Visual Studio ?** - Next by thread:
**Re: [eigen] [FAQ] how to have an initialized static Matrix**

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