/// Created by fuhong on 20-7-12.//#include<iostream>#include<Eigen/Dense>using namespace Eigen;using namespace std;intmain(){MatrixXd m0=MatrixXd::Random(3,3);//随机初始化初始化的值在[-1,1]区间内,矩阵大小3X3MatrixXd m1=MatrixXd::Constant(3,3,2.4);//常量值初始化,矩阵里面的值全...
// #include <iostream> #include <Eigen/Dense> using namespace Eigen; using namespace std; int main() { MatrixXd m = MatrixXd::Random(3, 3); //初始化动态矩阵m,使用Random函数,初始化的值在[-1,1]区间内,矩阵大小3X3 m = (m + MatrixXd::Constant(3, 3, 1.2)) * 50; // MatrixXd...