mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
15 lines
289 B
C++
15 lines
289 B
C++
#include <Eigen/Dense>
|
|
#include <iostream>
|
|
|
|
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;
|
|
}
|