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 /Eigen/src/Core/Random.h | |
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 'Eigen/src/Core/Random.h')
-rw-r--r-- | Eigen/src/Core/Random.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Eigen/src/Core/Random.h b/Eigen/src/Core/Random.h index cf6d44fb3..deb0dbde7 100644 --- a/Eigen/src/Core/Random.h +++ b/Eigen/src/Core/Random.h @@ -39,10 +39,9 @@ template<typename MatrixType> class Random : NoOperatorEquals, typedef typename MatrixType::Scalar Scalar; friend class MatrixBase<Scalar, Random<MatrixType> >; - static const int RowsAtCompileTime = MatrixType::RowsAtCompileTime, - ColsAtCompileTime = MatrixType::ColsAtCompileTime; - private: + static const int RowsAtCompileTime = MatrixType::Traits::RowsAtCompileTime, + ColsAtCompileTime = MatrixType::Traits::ColsAtCompileTime; const Random& _ref() const { return *this; } int _rows() const { return m_rows; } @@ -50,7 +49,7 @@ template<typename MatrixType> class Random : NoOperatorEquals, Scalar _coeff(int, int) const { - return random<Scalar>(); + return Eigen::random<Scalar>(); } public: |