Pastix(LDLT/LLT/LU).(i/d)parm() does not compile
Submitted by fabien chêne
Assigned to Nobody
Link to original bugzilla bug (#1149)
Version: 3.3 (current stable)
Description
#include <Eigen/PaStiXSupport>
template <class SOLVER>
void f()
{
SOLVER solver;
solver.iparm();
solver.dparm();
}
template void f<PastixSolverLDLT>();
template void f<PastixSolverLLT>();
template void f<PastixSolverLU>();
The code above does not compile, it results in the following error messages, for the three decompositions and both iparm and dparm.
error: invalid initialization of reference of type ‘Eigen::Array<int, 128, 1, 0, 128, 1>&’ from expression of type ‘Eigen::Matrix<int, 128, 1>’
return m_iparm;
error: invalid initialization of reference of type ‘Eigen::Array<double, 128, 1, 0, 128, 1>&’ from expression of type ‘Eigen::Matrix<double, 64, 1>’
return m_dparm;