[go: up one dir, main page]

'diagonal': is not a member of 'Eigen::Product<Derived,Eigen::SparseMatrix<double,1,int>,2>'

Submitted by cDc

Assigned to Nobody

Link to original bugzilla bug (#1394)
Version: 3.3 (current stable)

Description

In SelfAdjointEigenSolver::compute() I get this error at compile time when used with:

typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> Matrix;
typedef Eigen::SparseMatrix<double, Eigen::RowMajor> SparseMatrix;
SparseMatrix A(m, n);
const Eigen::SelfAdjointEigenSolver<Matrix> es(A.transpose()*A, Eigen::ComputeEigenvectors);

This used to work in 3.2.x

Edited by Eigen Bugzilla