2021-09-08
Eigen 点乘
Eigen中使用向量点乘及向量除法
#include <iostream>
#include <Eigen/Dense>
using namespace std;
int main(){
//创建6*1的向量a
Eigen::ArrayXXf a(6,1);
a(0,0) = 1;
a(2,0) = 2;
a(3,0) = 3;
a(4,0) = 4;
a(5,0) = 5;
a(6,0) = 6;
cout<<"a: "<&
原创
2021-09-08 20:49:42 ·
156 阅读 ·
0 评论