dense_vector=dense_vector*sparse_1x1_matrix crashes
Submitted by Vladimir Trifonov
Assigned to Nobody
Link to original bugzilla bug (#838)
Version: 3.2
Description
The following code crashes at the line "C = A * B" (compiled with g++ 4.9.0)
-- begin code
#include<Eigen/Sparse>
#include<Eigen/Dense>
using namespace Eigen;
int main(int argc, char** argv) {
Matrix<double, Dynamic, 1> A(3, 1), C;
SparseMatrix<double> B(1, 1);
A << 1, 1, 1;
B.insert(0,0) = 2;
C = A * B; // <-- crash here
return 0;
}
-- end code
The issue seems to be that A is declared with 1 fixed column. If I put here Dynamic it is OK.
Edited by Eigen Bugzilla