mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
- Introduce aliasing system
- Remove operator<<, use .alias() instead - Introduce operator/ (scalar) - Cleanup, unit-tests update.
This commit is contained in:
@@ -37,6 +37,7 @@ template<typename MatrixType> void matrixManip(const MatrixType& m)
|
||||
a.block(1, rows-1, 1, cols-1);
|
||||
a.xpr().row(i) = b.row(i);
|
||||
a.xpr().minor(i, j) = b.block(1, rows-1, 1, cols-1);
|
||||
a.alias().xpr().minor(i, j) = a.block(1, rows-1, 1, cols-1);
|
||||
}
|
||||
|
||||
void EigenTest::testMatrixManip()
|
||||
|
||||
@@ -44,7 +44,7 @@ template<typename MatrixType1,
|
||||
a = b;
|
||||
a = b + c;
|
||||
a = s * (b - c);
|
||||
a << a + b;
|
||||
a.alias() = a + b;
|
||||
|
||||
MatrixType1 d(rows1, cols1);
|
||||
MatrixType2 e(rows2, cols2);
|
||||
|
||||
@@ -42,7 +42,7 @@ template<typename VectorType> void vectorOps(const VectorType& v)
|
||||
a = b;
|
||||
a = b + c;
|
||||
a = s * (b - c);
|
||||
a << a + b;
|
||||
a.alias() = a + b;
|
||||
}
|
||||
|
||||
void EigenTest::testVectorOps()
|
||||
|
||||
Reference in New Issue
Block a user