diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-01-06 16:35:21 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-01-06 16:35:21 +0000 |
commit | 84934ea217eb327ba0e3c357b3c68ab0e22d5160 (patch) | |
tree | 517efc9702ac2e448763e45f04e8906e86ebb1d1 /test/linearstructure.cpp | |
parent | aaf889e72b005110530fb4252fb0858c2ec733de (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/linearstructure.cpp')
-rw-r--r-- | test/linearstructure.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/linearstructure.cpp b/test/linearstructure.cpp index 2bb7a1d81..32199c5e0 100644 --- a/test/linearstructure.cpp +++ b/test/linearstructure.cpp @@ -34,7 +34,7 @@ template<typename MatrixType> void linearStructure(const MatrixType& m) */ typedef typename MatrixType::Scalar Scalar; - typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; + typedef Matrix<Scalar, MatrixType::Traits::RowsAtCompileTime, 1> VectorType; int rows = m.rows(); int cols = m.cols(); @@ -45,9 +45,9 @@ template<typename MatrixType> void linearStructure(const MatrixType& m) m2 = MatrixType::random(rows, cols), m3(rows, cols), mzero = MatrixType::zero(rows, cols), - identity = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> + identity = Matrix<Scalar, MatrixType::Traits::RowsAtCompileTime, MatrixType::Traits::RowsAtCompileTime> ::identity(rows), - square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> + square = Matrix<Scalar, MatrixType::Traits::RowsAtCompileTime, MatrixType::Traits::RowsAtCompileTime> ::random(rows, rows); VectorType v1 = VectorType::random(rows), v2 = VectorType::random(rows), |