diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-01-05 10:57:14 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-01-05 10:57:14 +0000 |
commit | d1d55e67e967a9bd0d447a7ea105ac2771cde557 (patch) | |
tree | 53e40f4b87664c47c67f0394bc617999ad64ecf3 /Eigen/src/Core/Cast.h | |
parent | 23ffede3d0d280962bad418a41957cf82e3fadc9 (diff) |
- make MatrixBase and all expressions aware of their preferred traversal order.
Honor this preference in operator=.
- add several methods to the API
- rework API for diagonal matrices
- add benchmarking code
Diffstat (limited to 'Eigen/src/Core/Cast.h')
-rw-r--r-- | Eigen/src/Core/Cast.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Eigen/src/Core/Cast.h b/Eigen/src/Core/Cast.h index 513a070a9..126370487 100644 --- a/Eigen/src/Core/Cast.h +++ b/Eigen/src/Core/Cast.h @@ -57,6 +57,7 @@ template<typename NewScalar, typename MatrixType> class Cast : NoOperatorEquals, Cast(const MatRef& matrix) : m_matrix(matrix) {} private: + static const TraversalOrder _Order = MatrixType::Order; static const int _RowsAtCompileTime = MatrixType::RowsAtCompileTime, _ColsAtCompileTime = MatrixType::ColsAtCompileTime; const Cast& _ref() const { return *this; } |