From 504a31f643468d05a10e3474b76a61e80022df59 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 18 Apr 2010 22:14:55 -0400 Subject: renaming (MatrixType ---> whatever appropriate) and documentation improvements --- Eigen/src/Core/Map.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'Eigen/src/Core/Map.h') diff --git a/Eigen/src/Core/Map.h b/Eigen/src/Core/Map.h index c7018ce53..eb7262bdb 100644 --- a/Eigen/src/Core/Map.h +++ b/Eigen/src/Core/Map.h @@ -30,7 +30,7 @@ * * \brief A matrix or vector expression mapping an existing array of data. * - * \param MatrixType the equivalent matrix type of the mapped data + * \param PlainObjectType the equivalent matrix type of the mapped data * \param Options specifies whether the pointer is \c Aligned, or \c Unaligned. * The default is \c Unaligned. * \param StrideType optionnally specifies strides. By default, Map assumes the memory layout @@ -73,11 +73,11 @@ * * \sa Matrix::Map() */ -template -struct ei_traits > - : public ei_traits +template +struct ei_traits > + : public ei_traits { - typedef typename MatrixType::Scalar Scalar; + typedef typename PlainObjectType::Scalar Scalar; enum { InnerStrideAtCompileTime = StrideType::InnerStrideAtCompileTime, OuterStrideAtCompileTime = StrideType::OuterStrideAtCompileTime, @@ -85,21 +85,21 @@ struct ei_traits > HasNoOuterStride = OuterStrideAtCompileTime == 0, HasNoStride = HasNoInnerStride && HasNoOuterStride, IsAligned = int(int(Options)&Aligned)==Aligned, - IsDynamicSize = MatrixType::SizeAtCompileTime==Dynamic, + IsDynamicSize = PlainObjectType::SizeAtCompileTime==Dynamic, KeepsPacketAccess = bool(HasNoInnerStride) && ( bool(IsDynamicSize) || HasNoOuterStride || ( OuterStrideAtCompileTime!=Dynamic && ((int(OuterStrideAtCompileTime)*sizeof(Scalar))%16)==0 ) ), - Flags0 = ei_traits::Flags, + Flags0 = ei_traits::Flags, Flags1 = IsAligned ? int(Flags0) | AlignedBit : int(Flags0) & ~AlignedBit, Flags2 = HasNoStride ? int(Flags1) : int(Flags1 & ~LinearAccessBit), Flags = KeepsPacketAccess ? int(Flags2) : (int(Flags2) & ~PacketAccessBit) }; }; -template class Map - : public MapBase > +template class Map + : public MapBase > { public: @@ -128,7 +128,7 @@ template class Map inline Map(const Scalar* data, const StrideType& stride = StrideType()) : Base(data), m_stride(stride) { - MatrixType::Base::_check_template_params(); + PlainObjectType::Base::_check_template_params(); } /** Constructor in the dynamic-size vector case. @@ -140,7 +140,7 @@ template class Map inline Map(const Scalar* data, int size, const StrideType& stride = StrideType()) : Base(data, size), m_stride(stride) { - MatrixType::Base::_check_template_params(); + PlainObjectType::Base::_check_template_params(); } /** Constructor in the dynamic-size matrix case. @@ -153,7 +153,7 @@ template class Map inline Map(const Scalar* data, int rows, int cols, const StrideType& stride = StrideType()) : Base(data, rows, cols), m_stride(stride) { - MatrixType::Base::_check_template_params(); + PlainObjectType::Base::_check_template_params(); } -- cgit v1.2.3