diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2012-06-29 13:24:04 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2012-06-29 13:24:04 +0100 |
commit | c1eb820e50bfb00e38bf8ab306d04d6dc037f262 (patch) | |
tree | 1043b5ca0145dd1c8c41d84de0e6dab37bdd00c9 /Eigen/src/Core/NoAlias.h | |
parent | 069fd0e4be8620ed33b069267a60c4d1d17fddd9 (diff) |
Implement interface for NoAlias assignments.
* Rename the old copy_using_evaluators to noalias_copy_using_evaluators.
* Write a new copy_using_evaluators which strips NoAlias expression, if present,
and calls noalias_copy_using_evaluators; in future, it will also take care of
aliasing in products.
* Add expression() getter to NoAlias.
Diffstat (limited to 'Eigen/src/Core/NoAlias.h')
-rw-r--r-- | Eigen/src/Core/NoAlias.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Eigen/src/Core/NoAlias.h b/Eigen/src/Core/NoAlias.h index 5278cfb73..f0810803d 100644 --- a/Eigen/src/Core/NoAlias.h +++ b/Eigen/src/Core/NoAlias.h @@ -97,6 +97,11 @@ class NoAlias { return m_expression.derived() -= CoeffBasedProduct<Lhs,Rhs,NestByRefBit>(other.lhs(), other.rhs()); } #endif + ExpressionType& expression() const + { + return m_expression; + } + protected: ExpressionType& m_expression; }; |