From dee866a99a372dbbdcc8777e9a35da37ae3776a8 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Fri, 17 Aug 2012 15:36:37 +0100 Subject: [PATCH] Undo incorrect fix in previous commit, and fix real mistake instead. --- doc/AsciiQuickReference.txt | 4 ++-- doc/QuickReference.dox | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/AsciiQuickReference.txt b/doc/AsciiQuickReference.txt index c53ca10ea..d2e973f5d 100644 --- a/doc/AsciiQuickReference.txt +++ b/doc/AsciiQuickReference.txt @@ -43,8 +43,8 @@ x.head(n) // x(1:n) x.head() // x(1:n) x.tail(n) // N = rows(x); x(N - n: N) x.tail() // N = rows(x); x(N - n: N) -x.segment(i, n) // x(i+1 : i+n+1) -x.segment(i) // x(i+1 : i+n+1) +x.segment(i, n) // x(i+1 : i+n) +x.segment(i) // x(i+1 : i+n) P.block(i, j, rows, cols) // P(i+1 : i+rows, j+1 : j+cols) P.block(i, j) // P(i+1 : i+rows, j+1 : j+cols) P.topLeftCorner(rows, cols) // P(1:rows, 1:cols) diff --git a/doc/QuickReference.dox b/doc/QuickReference.dox index 3310d390a..31b8030f4 100644 --- a/doc/QuickReference.dox +++ b/doc/QuickReference.dox @@ -490,7 +490,7 @@ Read-write access to sub-vectors: \code vec1.head(n)\endcode\code vec1.head()\endcodethe first \c n coeffs \code vec1.tail(n)\endcode\code vec1.tail()\endcodethe last \c n coeffs \code vec1.segment(pos,n)\endcode\code vec1.segment(pos)\endcode - the \c n coeffs in \n the range [\c pos : \c pos + \c n [ + the \c n coeffs in the \n range [\c pos : \c pos + \c n - 1] Read-write access to sub-matrices: