You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
289 B
16 lines
289 B
2 years ago
|
#include <iostream>
|
||
|
#include <Eigen/Dense>
|
||
|
|
||
|
using namespace Eigen;
|
||
|
using namespace std;
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
Matrix3d m = Matrix3d::Random();
|
||
|
m = (m + Matrix3d::Constant(1.2)) * 50;
|
||
|
cout << "m =" << endl << m << endl;
|
||
|
Vector3d v(1,2,3);
|
||
|
|
||
|
cout << "m * v =" << endl << m * v << endl;
|
||
|
}
|