diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-06-24 17:55:00 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-06-24 17:55:00 +0200 |
commit | 62f21e2d11b3c34d4e3bc94fe11e59f57489084a (patch) | |
tree | 1231af0cf51badb2c72dca5c9631b0f1b3b1b22a /Eigen/src/SparseCore/SparseMatrixBase.h | |
parent | 763c833637d3918c32dc9c7ce5c9fcf647c7479b (diff) |
Add support for sparse = diagonal
Diffstat (limited to 'Eigen/src/SparseCore/SparseMatrixBase.h')
-rw-r--r-- | Eigen/src/SparseCore/SparseMatrixBase.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Eigen/src/SparseCore/SparseMatrixBase.h b/Eigen/src/SparseCore/SparseMatrixBase.h index f1b5d2a97..4e720904e 100644 --- a/Eigen/src/SparseCore/SparseMatrixBase.h +++ b/Eigen/src/SparseCore/SparseMatrixBase.h @@ -242,6 +242,11 @@ template<typename Derived> class SparseMatrixBase : public EigenBase<Derived> Derived& operator+=(const SparseMatrixBase<OtherDerived>& other); template<typename OtherDerived> Derived& operator-=(const SparseMatrixBase<OtherDerived>& other); + + template<typename OtherDerived> + Derived& operator+=(const DiagonalBase<OtherDerived>& other); + template<typename OtherDerived> + Derived& operator-=(const DiagonalBase<OtherDerived>& other); Derived& operator*=(const Scalar& other); Derived& operator/=(const Scalar& other); @@ -367,6 +372,8 @@ template<typename Derived> class SparseMatrixBase : public EigenBase<Derived> static inline StorageIndex convert_index(const Index idx) { return internal::convert_index<StorageIndex>(idx); } + private: + template<typename Dest> void evalTo(Dest &) const; }; } // end namespace Eigen |