mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-24 02:29:33 +08:00
18 lines
223 B
C++
18 lines
223 B
C++
#include <Eigen/Dense>
|
|
#include <iostream>
|
|
|
|
using namespace Eigen;
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
ArrayXXf a(3,3);
|
|
|
|
a << 1,2,3,
|
|
4,5,6,
|
|
7,8,9;
|
|
|
|
cout << "a + 2 = " << endl
|
|
<< a + 2 << endl;
|
|
}
|