From add5381be7cb1d32ee1e3603a0b999f74abaf612 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 17 Sep 2009 23:51:16 +0200 Subject: [PATCH] finish my evalToDense => evalTo change --- Eigen/src/Core/AnyMatrixBase.h | 2 +- Eigen/src/Core/DiagonalMatrix.h | 4 ++-- Eigen/src/Sparse/SparseMatrixBase.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Eigen/src/Core/AnyMatrixBase.h b/Eigen/src/Core/AnyMatrixBase.h index cd354d7b1..58b425740 100644 --- a/Eigen/src/Core/AnyMatrixBase.h +++ b/Eigen/src/Core/AnyMatrixBase.h @@ -94,7 +94,7 @@ template struct AnyMatrixBase ***************************************************************************/ /** Copies the generic expression \a other into *this. \returns a reference to *this. - * The expression must provide a (templated) evalToDense(Derived& dst) const function + * The expression must provide a (templated) evalTo(Derived& dst) const function * which does the actual job. In practice, this allows any user to write its own * special matrix without having to modify MatrixBase */ template diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index a74695921..4665fe0ca 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -51,7 +51,7 @@ class DiagonalBase : public AnyMatrixBase DenseMatrixType toDenseMatrix() const { return derived(); } template - void evalToDense(MatrixBase &other) const; + void evalTo(MatrixBase &other) const; template void addToDense(MatrixBase &other) const { other.diagonal() += diagonal(); } @@ -72,7 +72,7 @@ class DiagonalBase : public AnyMatrixBase template template -void DiagonalBase::evalToDense(MatrixBase &other) const +void DiagonalBase::evalTo(MatrixBase &other) const { other.setZero(); other.diagonal() = diagonal(); diff --git a/Eigen/src/Sparse/SparseMatrixBase.h b/Eigen/src/Sparse/SparseMatrixBase.h index d0b7c98c8..b2b010565 100644 --- a/Eigen/src/Sparse/SparseMatrixBase.h +++ b/Eigen/src/Sparse/SparseMatrixBase.h @@ -452,7 +452,7 @@ template class SparseMatrixBase : public AnyMatrixBase - void evalToDense(MatrixBase& dst) const + void evalTo(MatrixBase& dst) const { dst.setZero(); for (int j=0; j