Matrix 带特征值的Arduino矩阵乘法
我正在使用Arduino Mega 2560的特征库。我使用特征库创建动态矩阵,但它要么不返回任何内容,要么返回矩阵本身Matrix 带特征值的Arduino矩阵乘法,matrix,arduino,eigen3,Matrix,Arduino,Eigen3,我正在使用Arduino Mega 2560的特征库。我使用特征库创建动态矩阵,但它要么不返回任何内容,要么返回矩阵本身 #include <stlport.h> #include <Eigen30.h> #include <Eigen/LU> #include <Eigen/Dense> Eigen::MatrixXd b, c; void setup() { Serial.begin(9600); Eigen::MatrixXd a
#include <stlport.h>
#include <Eigen30.h>
#include <Eigen/LU>
#include <Eigen/Dense>
Eigen::MatrixXd b, c;
void setup() {
Serial.begin(9600);
Eigen::MatrixXd a;
for(int i=0; i < 4; i++){
for(int j=0; j < 4;j++){
a(i,j) = 1;
}
}
c = a * a;
}
void loop() {
}
如果矩阵定义为
本征::矩阵a(4,4)
那么代码将不会返回任何内容。这里怎么了
谢谢
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1