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/Block.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/Block.h')
-rw-r--r-- | Eigen/src/Core/Block.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/src/Core/Block.h b/Eigen/src/Core/Block.h index 8456b2b78..19552308e 100644 --- a/Eigen/src/Core/Block.h +++ b/Eigen/src/Core/Block.h @@ -67,9 +67,10 @@ template<typename MatrixType, int BlockRows, int BlockCols> class Block EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Block) private: + static const TraversalOrder _Order = MatrixType::Order; static const int _RowsAtCompileTime = BlockRows, _ColsAtCompileTime = BlockCols; - + const Block& _ref() const { return *this; } int _rows() const { return BlockRows; } int _cols() const { return BlockCols; } |