This forum has been archived. All content is frozen. Please use KDE Discuss instead.

constexpr

Tags: None
(comma "," separated)
n2k
Registered Member
Posts
41
Karma
0

constexpr

Tue Sep 17, 2013 1:15 am
Hi there,

I would like to know if I can have an Eigen::Matrix constexpr inside my own class. Something like:

Code: Select all
struct MyClass{
static constexpr Eigen::Matrix<double,1,2> A= rhs;
};


Not sure what to put instead of "rhs". I tried "(Eigen::Matrix<double,1,2>()<<0.0,1.0).finished()" but gcc complains that .finished() is not constant.

Thanks for the help.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]