Re: [eigen] MatrixBase - where are you gone?

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


Sorry about the noise,

my patch just didn't apply correctly. Thus, my lines weren't within namespace Eigen.

Helmut.


On 05/09/2012 06:15:01 PM, Helmut Jarausch wrote:
Hi,

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
src/Core/IO.h

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.

--
Helmut Jarausch
Numer. Math.
RWTH-Aachen University
Aachen
Germany






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