[eigen] Default input operator? [Bug 622]

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


Hi,

we need a decision about the properties of a default input operator.

I'd like to see an input operator which makes the following work (for all dense matrix types)

#include <sstream>
#include <Eigen/Core>

int main() {
  Eigen::MatrixXd A(3,3);
  // some initialization like
  A << 1, 2, 3,
       4, 5, 6,
       7, 8, 9;

  std::ostringstream Out;
  Out << A;                          // we have this already
  std::istringstream Inp(Out.str());
  Inp >> A;                          // we need this one
// .....
}

Thanks for considering this tiny addition to Eigen.

Helmut

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


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