Compilation error due to coeff method being declared private in InverseImpl.h
Submitted by Ed Savage
Assigned to Nobody
Link to original bugzilla bug (#1770)
Version: 3.3 (current stable)
Description
Compiler error messages below:
/Users/eds/src/elasticsearch/ml-cpp/3rd_party/eigen/Eigen/src/Core/SelfAdjointView.h:94:23: error: 'coeff' is a private member of 'Eigen::InverseImpl<Eigen::Matrix<double, 2, 2, 0, 2, 2>, Eigen::Dense>'
return m_matrix.coeff(row, col);
~~~~~~~~~^~~~~
/Users/eds/src/elasticsearch/ml-cpp/3rd_party/eigen/Eigen/src/Core/TriangularMatrix.h:76:73: note: in instantiation of member function 'Eigen::SelfAdjointView<const Eigen::Inverse<Eigen::Matrix<double, 2, 2, 0, 2, 2> >, 1>::coeff' requested here
inline Scalar coeff(Index row, Index col) const { return derived().coeff(row,col); }
^
/Users/eds/src/elasticsearch/ml-cpp/3rd_party/eigen/Eigen/src/Core/TriangularMatrix.h:93:14: note: in instantiation of member function 'Eigen::TriangularBase<Eigen::SelfAdjointView<const Eigen::Inverse<Eigen::Matrix<double, 2, 2, 0, 2, 2> >, 1> >::coeff' requested here
return coeff(row,col);
^
/Users/eds/src/elasticsearch/ml-cpp/include/maths/CLinearAlgebraEigen.h:590:16: note: in instantiation of member function 'Eigen::TriangularBase<Eigen::SelfAdjointView<const Eigen::Inverse<Eigen::Matrix<double, 2, 2, 0, 2, 2> >, 1> >::operator()' requested here
return (m_Type->template selfadjointViewEigen::Lower())(i, j);
^
/Users/eds/src/elasticsearch/ml-cpp/include/maths/CLinearAlgebraEigen.h:637:44: note: in instantiation of member function 'ml::maths::CDenseMatrixInitializer<Eigen::Inverse<Eigen::Matrix<double, 2, 2, 0, 2, 2> > >::get' requested here
TBase::m_LowerTriangle[i_] = m.get(i, j);
^
CMultivariateNormalConjugateTest.cc:508:22: note: in instantiation of function template specialization 'ml::maths::CSymmetricMatrixNxN<double, 2>::CSymmetricMatrixNxN<Eigen::Inverse<Eigen::Matrix<double, 2, 2, 0, 2, 2> > >' requested here
TMatrix2 precisionMatrix(maths::fromDenseMatrix(
^
/Users/eds/src/elasticsearch/ml-cpp/3rd_party/eigen/Eigen/src/Core/Inverse.h:77:10: note: declared private here
Scalar coeff(Index row, Index col) const;