diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-01-28 16:26:06 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-01-28 16:26:06 +0000 |
commit | 1b194193efeb9eb1930993e53d65404f2fdd54a1 (patch) | |
tree | ab15b3c5d2c09cc3041ca3241bd29f3246dff720 /Eigen/src/Core/NestByValue.h | |
parent | da555585e27f770bad3dc85ddeaf51df5a582416 (diff) |
Big change in DiagonalMatrix and Geometry/Scaling:
* previous DiagonalMatrix expression is now DiagonalMatrixWrapper
* DiagonalMatrix class is now for storage
* add the DiagonalMatrixBase class to factorize code of the
two previous classes
* remove Scaling class (it is now a global function)
* add UniformScaling helper class
(don't use it directly, use the Scaling function)
* add the Scaling global function to simplify the creation
of scaling objects
There is still a lot to do, in particular about DiagonalProduct for which
the goal is to get rid of the "if()" in the coeff() function. At least
it is not worse than before ! Also need to uptade the tutorial and add more doc.
Diffstat (limited to 'Eigen/src/Core/NestByValue.h')
-rw-r--r-- | Eigen/src/Core/NestByValue.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/NestByValue.h b/Eigen/src/Core/NestByValue.h index da79315bf..dfe757447 100644 --- a/Eigen/src/Core/NestByValue.h +++ b/Eigen/src/Core/NestByValue.h @@ -97,6 +97,8 @@ template<typename ExpressionType> class NestByValue { m_expression.const_cast_derived().template writePacket<LoadMode>(index, x); } + + operator const ExpressionType&() const { return m_expression; } protected: const ExpressionType m_expression; |