From a9d319d44fe49d5add9c3f76f27f57d06ec70c2f Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 4 Jul 2008 12:43:55 +0000 Subject: * do the ActualPacketAccesBit change as discussed on list * add comment in Product.h about CanVectorizeInner * fix typo in test/product.cpp --- Eigen/src/Core/IO.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'Eigen/src/Core/IO.h') diff --git a/Eigen/src/Core/IO.h b/Eigen/src/Core/IO.h index 762e1fb31..705cc5605 100644 --- a/Eigen/src/Core/IO.h +++ b/Eigen/src/Core/IO.h @@ -25,12 +25,8 @@ #ifndef EIGEN_IO_H #define EIGEN_IO_H -/** \relates MatrixBase - * - * Outputs the matrix, laid out as an array as usual, to the given stream. - */ template -std::ostream & operator << +std::ostream & ei_print_matrix (std::ostream & s, const MatrixBase & m) { @@ -45,4 +41,16 @@ std::ostream & operator << return s; } +/** \relates MatrixBase + * + * Outputs the matrix, laid out as an array as usual, to the given stream. + */ +template +std::ostream & operator << +(std::ostream & s, + const MatrixBase & m) +{ + return ei_print_matrix(s, m.eval()); +} + #endif // EIGEN_IO_H -- cgit v1.2.3