diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-02-20 11:52:22 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-02-20 11:52:22 +0100 |
commit | 2da1594750de99304fecce96fbfd29d080736446 (patch) | |
tree | ab17a7666216f8200a1896acfd86c35fd47829cb /Eigen/src/Core/Ref.h | |
parent | 01b844057986765d005dd1d3a52a5cba0cfb3f1c (diff) |
Fix doc of Ref<>
Diffstat (limited to 'Eigen/src/Core/Ref.h')
-rw-r--r-- | Eigen/src/Core/Ref.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 |