diff options
author | 2007-09-07 07:41:10 +0000 | |
---|---|---|
committer | 2007-09-07 07:41:10 +0000 | |
commit | c3731b36d1fc37546d00f52b3ccaa1c690646cf1 (patch) | |
tree | 31c08d88edc848856f35b50c7e6a9d1985bca62a /src/MatrixBase.h | |
parent | e7ef6dba9d09d1c4e8e03c0f6ee7d85a099f8df8 (diff) |
Add operator += and operator -= between matrices/vectors/expressions
Diffstat (limited to 'src/MatrixBase.h')
-rw-r--r-- | src/MatrixBase.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/MatrixBase.h b/src/MatrixBase.h index 860b9272d..93552b467 100644 --- a/src/MatrixBase.h +++ b/src/MatrixBase.h @@ -202,6 +202,16 @@ class MatrixBase MatrixConstXpr<MatrixBlock<const ConstRef> > block(int startRow, int endRow, int startCol = 0, int endCol = 0) const; + template<typename Content> + MatrixBase& operator+=(const MatrixConstXpr<Content> &xpr); + template<typename Content> + MatrixBase& operator-=(const MatrixConstXpr<Content> &xpr); + template<typename Derived2> + MatrixBase& operator+=(const MatrixBase<Derived2> &other); + template<typename Derived2> + MatrixBase& operator-=(const MatrixBase<Derived2> &other); + + protected: MatrixBase() {}; |