aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MatrixBase.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-07 07:41:10 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-07 07:41:10 +0000
commitc3731b36d1fc37546d00f52b3ccaa1c690646cf1 (patch)
tree31c08d88edc848856f35b50c7e6a9d1985bca62a /src/MatrixBase.h
parente7ef6dba9d09d1c4e8e03c0f6ee7d85a099f8df8 (diff)
Add operator += and operator -= between matrices/vectors/expressions
Diffstat (limited to 'src/MatrixBase.h')
-rw-r--r--src/MatrixBase.h10
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() {};