diff options
author | 2007-09-06 10:16:51 +0000 | |
---|---|---|
committer | 2007-09-06 10:16:51 +0000 | |
commit | e7ef6dba9d09d1c4e8e03c0f6ee7d85a099f8df8 (patch) | |
tree | 907e8da94222fdd1c64f2342124e88a622b4cf26 /test | |
parent | 9477e62b68cd25e48d3e6e4cc5d9fa4cb61cd26f (diff) |
- Introduce aliasing system
- Remove operator<<, use .alias() instead
- Introduce operator/ (scalar)
- Cleanup, unit-tests update.
Diffstat (limited to 'test')
-rw-r--r-- | test/matrixmanip.cpp | 1 | ||||
-rw-r--r-- | test/matrixops.cpp | 2 | ||||
-rw-r--r-- | test/vectorops.cpp | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/test/matrixmanip.cpp b/test/matrixmanip.cpp index 153af365c..5ce8fa615 100644 --- a/test/matrixmanip.cpp +++ b/test/matrixmanip.cpp @@ -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() diff --git a/test/matrixops.cpp b/test/matrixops.cpp index 6e95f7893..a9034dcf2 100644 --- a/test/matrixops.cpp +++ b/test/matrixops.cpp @@ -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); diff --git a/test/vectorops.cpp b/test/vectorops.cpp index abd5ef0c2..b4b638495 100644 --- a/test/vectorops.cpp +++ b/test/vectorops.cpp @@ -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() |