Add operator += and operator -= between matrices/vectors/expressions

This commit is contained in:
Benoit Jacob
2007-09-07 07:41:10 +00:00
parent e7ef6dba9d
commit c3731b36d1
6 changed files with 80 additions and 1 deletions

View File

@@ -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()