aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/IO.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-07-04 12:43:55 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-07-04 12:43:55 +0000
commita9d319d44fe49d5add9c3f76f27f57d06ec70c2f (patch)
treeafb36a26020996d2dc059cee1ca5176b5f9f466c /Eigen/src/Core/IO.h
parent8463b7d3f4ba6b94d79503d30b7822f064adbb08 (diff)
* do the ActualPacketAccesBit change as discussed on list
* add comment in Product.h about CanVectorizeInner * fix typo in test/product.cpp
Diffstat (limited to 'Eigen/src/Core/IO.h')
-rw-r--r--Eigen/src/Core/IO.h18
1 files changed, 13 insertions, 5 deletions
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<typename Derived>
-std::ostream & operator <<
+std::ostream & ei_print_matrix
(std::ostream & s,
const MatrixBase<Derived> & 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<typename Derived>
+std::ostream & operator <<
+(std::ostream & s,
+ const MatrixBase<Derived> & m)
+{
+ return ei_print_matrix(s, m.eval());
+}
+
#endif // EIGEN_IO_H