aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/miscmatrices.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-06-28 21:27:37 +0200
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-06-28 21:27:37 +0200
commit6809f7b1cdb3da897b996b72bb7f3c9dd4c26921 (patch)
tree390185a19c0d4aee90a9eb055897a69381c94962 /test/miscmatrices.cpp
parentfc9000f23ed5d9c902e2153a5008d9a24adf930c (diff)
new implementation of diagonal matrices and diagonal matrix expressions
Diffstat (limited to 'test/miscmatrices.cpp')
-rw-r--r--test/miscmatrices.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/miscmatrices.cpp b/test/miscmatrices.cpp
index 5b0367be6..bf885e252 100644
--- a/test/miscmatrices.cpp
+++ b/test/miscmatrices.cpp
@@ -43,7 +43,7 @@ template<typename MatrixType> void miscMatrices(const MatrixType& m)
VectorType v1 = VectorType::Random(rows);
v1[0];
Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime>
- square = v1.asDiagonal();
+ square(v1.asDiagonal());
if(r==r2) VERIFY_IS_APPROX(square(r,r2), v1[r]);
else VERIFY_IS_MUCH_SMALLER_THAN(square(r,r2), static_cast<Scalar>(1));
square = MatrixType::Zero(rows, rows);