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:
@@ -43,6 +43,11 @@ template<typename VectorType> void vectorOps(const VectorType& v)
|
||||
a = b + c;
|
||||
a = s * (b - c);
|
||||
a.alias() = a + b;
|
||||
|
||||
a += b;
|
||||
a += b + b;
|
||||
a.xpr() -= b;
|
||||
a.xpr() -= b + b;
|
||||
}
|
||||
|
||||
void EigenTest::testVectorOps()
|
||||
|
||||
Reference in New Issue
Block a user