aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-16 21:33:41 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-16 21:33:41 -0500
commit984c00077878382a5b49c0cbbe150e488a801940 (patch)
treeb2ad908607d85d9e1aef1f25f7bacd18cec11807 /Eigen/src/Core
parent07412b2075a0d2924ae302f4af7ca54c923c9115 (diff)
addToDense ---> addTo
subToDense ---> subTo
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r--Eigen/src/Core/AnyMatrixBase.h8
-rw-r--r--Eigen/src/Core/DiagonalMatrix.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/Eigen/src/Core/AnyMatrixBase.h b/Eigen/src/Core/AnyMatrixBase.h
index 58b425740..eddf2d232 100644
--- a/Eigen/src/Core/AnyMatrixBase.h
+++ b/Eigen/src/Core/AnyMatrixBase.h
@@ -52,7 +52,7 @@ template<typename Derived> struct AnyMatrixBase
{ derived().evalTo(dst); }
/** \internal Don't use it, but do the equivalent: \code dst += *this; \endcode */
- template<typename Dest> inline void addToDense(Dest& dst) const
+ template<typename Dest> inline void addTo(Dest& dst) const
{
// This is the default implementation,
// derived class can reimplement it in a more optimized way.
@@ -62,7 +62,7 @@ template<typename Derived> struct AnyMatrixBase
}
/** \internal Don't use it, but do the equivalent: \code dst -= *this; \endcode */
- template<typename Dest> inline void subToDense(Dest& dst) const
+ template<typename Dest> inline void subTo(Dest& dst) const
{
// This is the default implementation,
// derived class can reimplement it in a more optimized way.
@@ -109,7 +109,7 @@ template<typename Derived>
template<typename OtherDerived>
Derived& MatrixBase<Derived>::operator+=(const AnyMatrixBase<OtherDerived> &other)
{
- other.derived().addToDense(derived());
+ other.derived().addTo(derived());
return derived();
}
@@ -117,7 +117,7 @@ template<typename Derived>
template<typename OtherDerived>
Derived& MatrixBase<Derived>::operator-=(const AnyMatrixBase<OtherDerived> &other)
{
- other.derived().subToDense(derived());
+ other.derived().subTo(derived());
return derived();
}
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h
index e3e2120ea..360f03dd2 100644
--- a/Eigen/src/Core/DiagonalMatrix.h
+++ b/Eigen/src/Core/DiagonalMatrix.h
@@ -52,10 +52,10 @@ class DiagonalBase : public AnyMatrixBase<Derived>
template<typename DenseDerived>
void evalTo(MatrixBase<DenseDerived> &other) const;
template<typename DenseDerived>
- void addToDense(MatrixBase<DenseDerived> &other) const
+ void addTo(MatrixBase<DenseDerived> &other) const
{ other.diagonal() += diagonal(); }
template<typename DenseDerived>
- void subToDense(MatrixBase<DenseDerived> &other) const
+ void subTo(MatrixBase<DenseDerived> &other) const
{ other.diagonal() -= diagonal(); }
inline const DiagonalVectorType& diagonal() const { return derived().diagonal(); }