[eigen] MatrixBase - where are you gone?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


as reported many times, I do need the C++ input operator for Eigen Matrices.

Up to now, I've just added the following lines to

template<typename Derived>
std::istream & operator >>
(std::istream & s,
 MatrixBase<Derived> & m)
    for (int i = 0; i < m.rows(); ++i)
    for (int j = 0; j < m.cols(); j++)
      s >> m(i,j);

  return s;

But now, with the recent HG version of Eigen, this doesn't work any longer.
It says:

 error: 'MatrixBase' has not been declared

So, please tell me, where it is declared now.

Many thanks,

Helmut Jarausch
Numer. Math.
RWTH-Aachen University

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/