eigen: add hello world

Mention openmp on readme
This commit is contained in:
Ciro Santilli
2018-05-08 16:17:59 +01:00
parent 9f876f7897
commit a9a0b93d7c
5 changed files with 50 additions and 13 deletions

View File

@@ -0,0 +1,14 @@
/* Official hello world. */
#include <iostream>
#include <eigen3/Eigen/Dense>
using Eigen::MatrixXd;
int main()
{
MatrixXd m(2,2);
m(0,0) = 3;
m(1,0) = 2.5;
m(0,1) = -1;
m(1,1) = m(1,0) + m(0,1);
std::cout << m << std::endl;
}