From d1d55e67e967a9bd0d447a7ea105ac2771cde557 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sat, 5 Jan 2008 10:57:14 +0000 Subject: - 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 --- Eigen/src/Core/Block.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Eigen/src/Core/Block.h') 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 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; } -- cgit v1.2.3