diff --git a/doc/A05_PortingFrom2To3.dox b/doc/A05_PortingFrom2To3.dox index 4425cc0e0..a1bf0681d 100644 --- a/doc/A05_PortingFrom2To3.dox +++ b/doc/A05_PortingFrom2To3.dox @@ -6,30 +6,38 @@ The goals of this page is to enumerate the API changes between Eigen2 and Eigen3 and to help porting an application from Eigen2 to Eigen3. \b Table \b of \b contents - - \ref summary - - \ref modules - - \ref core + - \ref CompatibilitySupport + - \ref ChangeList + - \ref CoefficientWiseOperations + - \ref LazyVsNoalias \section CompatibilitySupport Eigen2 compatibility support In order to ease th switch from Eigen2 to Eigen3, Eigen3 features a compatibility mode which can be enabled by defining the EIGEN2_SUPPORT preprocessor token \b before including any Eigen's header (typically it should be set in your project options). -\section ChangeList List of changes +\section ChangeList List of changes in the API
Eigen 2 | Eigen 3 | |
vec.start(length) | vec.head(length) | |
vec.start | vec.head | |
vec.end(length) | vec.tail(length) | |
vec.end | vec.tail | |
mat.cwise().XXX() | mat.array().XXX() \redstar | |
\code c = (a * b).lazy();\endcode | \code c.noalias() = a * b;\endcode | |
Eigen 2 | Eigen 3 | Comments |
\code
+vec.start(length)
+vec.start | \code
+vec.head(length)
+vec.head | This is a simple search and replace change. |
\code mat.cwise().XXX()\endcode | \code mat.array().XXX()\endcode | See \ref CoefficientWiseOperations. |
\code c = (a * b).lazy();\endcode | \code c.noalias() = a * b;\endcode | See \ref LazyVsNoalias. |
\code A.triangularSolveInPlace | \code A.triangularView |