aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/miscmatrices.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-01-06 16:35:21 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-01-06 16:35:21 +0000
commit84934ea217eb327ba0e3c357b3c68ab0e22d5160 (patch)
tree517efc9702ac2e448763e45f04e8906e86ebb1d1 /test/miscmatrices.cpp
parentaaf889e72b005110530fb4252fb0858c2ec733de (diff)
- move: DerivedTraits becomes MatrixBase::Traits
- the static constants are private again in the Derived classes - more documentation and code snippets - new isDiagonal() method
Diffstat (limited to 'test/miscmatrices.cpp')
-rw-r--r--test/miscmatrices.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/miscmatrices.cpp b/test/miscmatrices.cpp
index 7126266fc..e0aa13270 100644
--- a/test/miscmatrices.cpp
+++ b/test/miscmatrices.cpp
@@ -34,8 +34,8 @@ template<typename MatrixType> void miscMatrices(const MatrixType& m)
*/
typedef typename MatrixType::Scalar Scalar;
- typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType;
- typedef Matrix<Scalar, 1, MatrixType::ColsAtCompileTime> RowVectorType;
+ typedef Matrix<Scalar, MatrixType::Traits::RowsAtCompileTime, 1> VectorType;
+ typedef Matrix<Scalar, 1, MatrixType::Traits::ColsAtCompileTime> RowVectorType;
int rows = m.rows();
int cols = m.cols();
@@ -45,7 +45,7 @@ template<typename MatrixType> void miscMatrices(const MatrixType& m)
VERIFY_IS_APPROX(m1(r,c), static_cast<Scalar>(1));
VectorType v1 = VectorType::random(rows);
v1[0];
- Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime>
+ Matrix<Scalar, MatrixType::Traits::RowsAtCompileTime, MatrixType::Traits::RowsAtCompileTime>
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));