From 2da1594750de99304fecce96fbfd29d080736446 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 20 Feb 2015 11:52:22 +0100 Subject: Fix doc of Ref<> --- Eigen/src/Core/Ref.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/Ref.h') diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 6e6adbd31..0cb117949 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -48,8 +48,9 @@ namespace Eigen { * VectorXf a; * foo1(a.head()); // OK * foo1(A.col()); // OK - * foo1(A.row()); // compilation error because here innerstride!=1 - * foo2(A.row()); // The row is copied into a contiguous temporary + * foo1(A.row()); // Compilation error because here innerstride!=1 + * foo2(A.row()); // Compilation error because A.row() is a 1xN object while foo2 is expecting a Nx1 object + * foo2(A.row().transpose()); // The row is copied into a contiguous temporary * foo2(2*a); // The expression is evaluated into a temporary * foo2(A.col().segment(2,4)); // No temporary * \endcode -- cgit v1.2.3