Registered Member
|
Hi,
the following code gives a lot of error messages (which look strange to a new user of Eigen2, as me). #include // import most common Eigen types USING_PART_OF_NAMESPACE_EIGEN int main() { int N=4; MatrixXd A = MatrixXd::Random(N,N); } How to initialize (or set) a dynamic matrix to a random matrix? Thanks for any hints, Helmut. |
Moderator
|
as described in the doc of Random and in the tutorial, you need to include the Array module:
#include |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell