From 0c8b0e007b282139b4d3ab8e74f287c8e5109d69 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 19 Jun 2015 15:38:19 +0200 Subject: Introduce a AliasFreeProduct option for Permutations and Transpositions --- Eigen/src/Core/PermutationMatrix.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Eigen/src/Core/PermutationMatrix.h') diff --git a/Eigen/src/Core/PermutationMatrix.h b/Eigen/src/Core/PermutationMatrix.h index 8cf989f2c..bfe6f899a 100644 --- a/Eigen/src/Core/PermutationMatrix.h +++ b/Eigen/src/Core/PermutationMatrix.h @@ -541,11 +541,11 @@ class PermutationWrapper : public PermutationBase EIGEN_DEVICE_FUNC -const Product +const Product operator*(const MatrixBase &matrix, const PermutationBase& permutation) { - return Product + return Product (matrix.derived(), permutation.derived()); } @@ -553,11 +553,11 @@ operator*(const MatrixBase &matrix, */ template EIGEN_DEVICE_FUNC -const Product +const Product operator*(const PermutationBase &permutation, const MatrixBase& matrix) { - return Product + return Product (permutation.derived(), matrix.derived()); } @@ -620,19 +620,19 @@ class Transpose > /** \returns the matrix with the inverse permutation applied to the columns. */ template friend - const Product + const Product operator*(const MatrixBase& matrix, const Transpose& trPerm) { - return Product(matrix.derived(), trPerm.derived()); + return Product(matrix.derived(), trPerm.derived()); } /** \returns the matrix with the inverse permutation applied to the rows. */ template - const Product + const Product operator*(const MatrixBase& matrix) const { - return Product(*this, matrix.derived()); + return Product(*this, matrix.derived()); } const PermutationType& nestedExpression() const { return m_permutation; } -- cgit v1.2.3