diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2012-08-17 15:36:37 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2012-08-17 15:36:37 +0100 |
commit | dee866a99a372dbbdcc8777e9a35da37ae3776a8 (patch) | |
tree | 7a399985e9034ab5f7bac3be379639bdb2ec3a52 /doc | |
parent | 5eefca637e1c964426e8515b2493fbed816a789a (diff) |
Undo incorrect fix in previous commit, and fix real mistake instead.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/AsciiQuickReference.txt | 4 | ||||
-rw-r--r-- | 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<n>() // x(1:n) x.tail(n) // N = rows(x); x(N - n: N) x.tail<n>() // N = rows(x); x(N - n: N) -x.segment(i, n) // x(i+1 : i+n+1) -x.segment<n>(i) // x(i+1 : i+n+1) +x.segment(i, n) // x(i+1 : i+n) +x.segment<n>(i) // x(i+1 : i+n) P.block(i, j, rows, cols) // P(i+1 : i+rows, j+1 : j+cols) P.block<rows, cols>(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: <tr><td>\code vec1.head(n)\endcode</td><td>\code vec1.head<n>()\endcode</td><td>the first \c n coeffs </td></tr> <tr><td>\code vec1.tail(n)\endcode</td><td>\code vec1.tail<n>()\endcode</td><td>the last \c n coeffs </td></tr> <tr><td>\code vec1.segment(pos,n)\endcode</td><td>\code vec1.segment<n>(pos)\endcode</td> - <td>the \c n coeffs in \n the range [\c pos : \c pos + \c n [</td></tr> + <td>the \c n coeffs in the \n range [\c pos : \c pos + \c n - 1]</td></tr> <tr class="alt"><td colspan="3"> Read-write access to sub-matrices:</td></tr> |