mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
16 lines
289 B
C++
16 lines
289 B
C++
#include <iostream>
|
|
#include <Eigen/Dense>
|
|
|
|
using namespace Eigen;
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
Matrix3f m = Matrix3f::Random();
|
|
m = (m + Matrix3f::Constant(1.2)) * 50;
|
|
cout << "m =" << endl << m << endl;
|
|
Vector3f v(1,2,3);
|
|
|
|
cout << "m * v =" << endl << m * v << endl;
|
|
}
|