mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 17:17:14 +08:00
15 lines
308 B
C++
15 lines
308 B
C++
#include <Eigen/Dense>
|
|
#include <iostream>
|
|
|
|
using namespace Eigen;
|
|
using namespace std;
|
|
|
|
int main() {
|
|
MatrixXd m = MatrixXd::Random(3, 3);
|
|
m = (m + MatrixXd::Constant(3, 3, 1.2)) * 50;
|
|
cout << "m =" << endl << m << endl;
|
|
VectorXd v(3);
|
|
v << 1, 2, 3;
|
|
cout << "m * v =" << endl << m * v << endl;
|
|
}
|