From 69c057ccb17ec77fcfc4b72795bdf2494b1313a8 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Tue, 27 Aug 2013 14:54:57 +0200 Subject: [PATCH] Fixed InnerPanel definition in the Transformation class. Added some inital documentation on InnerPanel. --- Eigen/src/Core/Block.h | 3 +++ Eigen/src/Geometry/Transform.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/Block.h b/Eigen/src/Core/Block.h index 358b3188b..3efdcfee3 100644 --- a/Eigen/src/Core/Block.h +++ b/Eigen/src/Core/Block.h @@ -21,6 +21,9 @@ namespace Eigen { * \param XprType the type of the expression in which we are taking a block * \param BlockRows the number of rows of the block we are taking at compile time (optional) * \param BlockCols the number of columns of the block we are taking at compile time (optional) + * \param InnerPanel is true, if the block maps to a set of rows of a row major matrix or + * to set of columns of a column major matrix (optional). The parameter allows to determine + * at compile time whether aligned access is possible on the block expression. * * This class represents an expression of either a fixed-size or dynamic-size block. It is the return * type of DenseBase::block(Index,Index,Index,Index) and DenseBase::block(Index,Index) and diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h index 887e718d6..419f90148 100644 --- a/Eigen/src/Geometry/Transform.h +++ b/Eigen/src/Geometry/Transform.h @@ -208,9 +208,9 @@ public: /** type of a vector */ typedef Matrix VectorType; /** type of a read/write reference to the translation part of the rotation */ - typedef Block TranslationPart; + typedef Block::Flags & RowMajorBit)> TranslationPart; /** type of a read reference to the translation part of the rotation */ - typedef const Block ConstTranslationPart; + typedef const Block::Flags & RowMajorBit)> ConstTranslationPart; /** corresponding translation type */ typedef Translation TranslationType;