mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add operator += and operator -= between matrices/vectors/expressions
This commit is contained in:
@@ -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() {};
|
||||
|
||||
Reference in New Issue
Block a user