mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
Undo incorrect fix in previous commit, and fix real mistake instead.
This commit is contained in:
parent
5eefca637e
commit
dee866a99a
@ -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)
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user