diff options
Diffstat (limited to 'doc/A05_PortingFrom2To3.dox')
-rw-r--r-- | doc/A05_PortingFrom2To3.dox | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/A05_PortingFrom2To3.dox b/doc/A05_PortingFrom2To3.dox index 57f801f84..554ca7f2c 100644 --- a/doc/A05_PortingFrom2To3.dox +++ b/doc/A05_PortingFrom2To3.dox @@ -9,6 +9,7 @@ and to help porting an application from Eigen2 to Eigen3. - \ref CompatibilitySupport - \ref ChangeList - \ref CoefficientWiseOperations + - \ref Corners - \ref LazyVsNoalias \section CompatibilitySupport Eigen2 compatibility support @@ -81,6 +82,34 @@ With Eigen2 you would have written: c = (a.cwise().abs().cwise().pow(3)).cwise() * (b.cwise().abs().cwise().sin()); \endcode +\section Corners Corners + +<table> +<tr><td>Eigen 2</td><td>Eigen 3</td></tr> +<tr><td>\code +matrix.corner(TopLeft,r,c) +matrix.corner(TopRight,r,c) +matrix.corner(BottomLeft,r,c) +matrix.corner(BottomRight,r,c) +matrix.corner<r,c>(TopLeft) +matrix.corner<r,c>(TopRight) +matrix.corner<r,c>(BottomLeft) +matrix.corner<r,c>(BottomRight) +\endcode</td><td>\code +matrix.topLeftCorner(r,c) +matrix.topRightCorner(r,c) +matrix.bottomLeftCorner(r,c) +matrix.bottomRightCorner(r,c) +matrix.topLeftCorner<r,c>() +matrix.topRightCorner<r,c>() +matrix.bottomLeftCorner<r,c>() +matrix.bottomRightCorner<r,c>() +\endcode</td> +</tr> +</table> + +Notice that Eigen3 also provides these new convenience methods: topRows(), bottomRows(), leftCols(), rightCols(). See in class DenseBase. + \section LazyVsNoalias Lazy evaluation and noalias In Eigen all operations are performed in a lazy fashion except the matrix products which are always evaluated into a temporary by default. |