From c1eb820e50bfb00e38bf8ab306d04d6dc037f262 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Fri, 29 Jun 2012 13:24:04 +0100 Subject: 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. --- Eigen/src/Core/NoAlias.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Eigen/src/Core/NoAlias.h') 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(other.lhs(), other.rhs()); } #endif + ExpressionType& expression() const + { + return m_expression; + } + protected: ExpressionType& m_expression; }; -- cgit v1.2.3