From f279162ec4f01ecec8fa37eae02757720e16e65b Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 30 Mar 2008 18:43:22 +0000 Subject: * introducte recursive Flags system for the expressions -- currently 3 flags: RowMajor, Lazy and Large -- only RowMajor actually used for now * many minor improvements --- Eigen/src/Core/Coeffs.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Eigen/src/Core/Coeffs.h') diff --git a/Eigen/src/Core/Coeffs.h b/Eigen/src/Core/Coeffs.h index d0b211314..b170ffda7 100644 --- a/Eigen/src/Core/Coeffs.h +++ b/Eigen/src/Core/Coeffs.h @@ -40,7 +40,7 @@ * \sa operator()(int,int) const, coeffRef(int,int), coeff(int) const */ template -typename ei_traits::Scalar MatrixBase +const typename ei_traits::Scalar MatrixBase ::coeff(int row, int col) const { ei_internal_assert(row >= 0 && row < rows() @@ -53,7 +53,7 @@ typename ei_traits::Scalar MatrixBase * \sa operator()(int,int), operator[](int) const */ template -typename ei_traits::Scalar MatrixBase +const typename ei_traits::Scalar MatrixBase ::operator()(int row, int col) const { ei_assert(row >= 0 && row < rows() @@ -112,7 +112,7 @@ typename ei_traits::Scalar& MatrixBase * \sa operator[](int) const, coeffRef(int), coeff(int,int) const */ template -typename ei_traits::Scalar MatrixBase +const typename ei_traits::Scalar MatrixBase ::coeff(int index) const { ei_internal_assert(IsVectorAtCompileTime); @@ -136,7 +136,7 @@ typename ei_traits::Scalar MatrixBase * z() const, w() const */ template -typename ei_traits::Scalar MatrixBase +const typename ei_traits::Scalar MatrixBase ::operator[](int index) const { ei_assert(IsVectorAtCompileTime); @@ -208,22 +208,22 @@ typename ei_traits::Scalar& MatrixBase /** equivalent to operator[](0). \only_for_vectors */ template -typename ei_traits::Scalar MatrixBase +const typename ei_traits::Scalar MatrixBase ::x() const { return (*this)[0]; } /** equivalent to operator[](1). \only_for_vectors */ template -typename ei_traits::Scalar MatrixBase +const typename ei_traits::Scalar MatrixBase ::y() const { return (*this)[1]; } /** equivalent to operator[](2). \only_for_vectors */ template -typename ei_traits::Scalar MatrixBase +const typename ei_traits::Scalar MatrixBase ::z() const { return (*this)[2]; } /** equivalent to operator[](3). \only_for_vectors */ template -typename ei_traits::Scalar MatrixBase +const typename ei_traits::Scalar MatrixBase ::w() const { return (*this)[3]; } /** equivalent to operator[](0). \only_for_vectors */ -- cgit v1.2.3