diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-02-01 16:14:53 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-02-01 16:14:53 +0100 |
commit | ffc8386fdbad7a1e642c9d6fdba977e2d124e619 (patch) | |
tree | dfd4b09f0971450d06f9094405e80ac373f9dab3 /Eigen | |
parent | a486d5590a7532b698db07eaeba8c402bbf9fd6f (diff) |
mark the packet access methods as internal
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/DenseCoeffsBase.h | 16 | ||||
-rw-r--r-- | Eigen/src/Core/PlainObjectBase.h | 4 |
2 files changed, 15 insertions, 5 deletions
diff --git a/Eigen/src/Core/DenseCoeffsBase.h b/Eigen/src/Core/DenseCoeffsBase.h index f9f1f4851..7838a1cfb 100644 --- a/Eigen/src/Core/DenseCoeffsBase.h +++ b/Eigen/src/Core/DenseCoeffsBase.h @@ -207,7 +207,8 @@ class DenseCoeffsBase<Derived,ReadOnlyAccessors> : public EigenBase<Derived> EIGEN_STRONG_INLINE CoeffReturnType w() const { return (*this)[3]; } - /** \returns the packet of coefficients starting at the given row and column. It is your responsibility + /** \internal + * \returns the packet of coefficients starting at the given row and column. It is your responsibility * to ensure that a packet really starts there. This method is only available on expressions having the * PacketAccessBit. * @@ -225,6 +226,7 @@ class DenseCoeffsBase<Derived,ReadOnlyAccessors> : public EigenBase<Derived> } + /** \internal */ template<int LoadMode> EIGEN_STRONG_INLINE PacketReturnType packetByOuterInner(Index outer, Index inner) const { @@ -232,7 +234,8 @@ class DenseCoeffsBase<Derived,ReadOnlyAccessors> : public EigenBase<Derived> colIndexByOuterInner(outer, inner)); } - /** \returns the packet of coefficients starting at the given index. It is your responsibility + /** \internal + * \returns the packet of coefficients starting at the given index. It is your responsibility * to ensure that a packet really starts there. This method is only available on expressions having the * PacketAccessBit and the LinearAccessBit. * @@ -425,7 +428,8 @@ class DenseCoeffsBase<Derived, WriteAccessors> : public DenseCoeffsBase<Derived, EIGEN_STRONG_INLINE Scalar& w() { return (*this)[3]; } - /** Stores the given packet of coefficients, at the given row and column of this expression. It is your responsibility + /** \internal + * Stores the given packet of coefficients, at the given row and column of this expression. It is your responsibility * to ensure that a packet really starts there. This method is only available on expressions having the * PacketAccessBit. * @@ -444,6 +448,7 @@ class DenseCoeffsBase<Derived, WriteAccessors> : public DenseCoeffsBase<Derived, } + /** \internal */ template<int StoreMode> EIGEN_STRONG_INLINE void writePacketByOuterInner (Index outer, Index inner, const typename internal::packet_traits<Scalar>::type& x) @@ -453,7 +458,8 @@ class DenseCoeffsBase<Derived, WriteAccessors> : public DenseCoeffsBase<Derived, x); } - /** Stores the given packet of coefficients, at the given index in this expression. It is your responsibility + /** \internal + * Stores the given packet of coefficients, at the given index in this expression. It is your responsibility * to ensure that a packet really starts there. This method is only available on expressions having the * PacketAccessBit and the LinearAccessBit. * @@ -461,7 +467,6 @@ class DenseCoeffsBase<Derived, WriteAccessors> : public DenseCoeffsBase<Derived, * the appropriate vectorization instruction. Aligned access is faster, but is only possible for packets * starting at an address which is a multiple of the packet size. */ - template<int StoreMode> EIGEN_STRONG_INLINE void writePacket (Index index, const typename internal::packet_traits<Scalar>::type& x) @@ -546,6 +551,7 @@ class DenseCoeffsBase<Derived, WriteAccessors> : public DenseCoeffsBase<Derived, other.derived().template packet<LoadMode>(index)); } + /** \internal */ template<typename OtherDerived, int StoreMode, int LoadMode> EIGEN_STRONG_INLINE void copyPacketByOuterInner(Index outer, Index inner, const DenseBase<OtherDerived>& other) { diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index 666ce7743..a6685afd0 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -129,6 +129,7 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::type return m_storage.data()[index]; } + /** \internal */ template<int LoadMode> EIGEN_STRONG_INLINE PacketScalar packet(Index row, Index col) const { @@ -138,12 +139,14 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::type : row + col * m_storage.rows())); } + /** \internal */ template<int LoadMode> EIGEN_STRONG_INLINE PacketScalar packet(Index index) const { return internal::ploadt<PacketScalar, LoadMode>(m_storage.data() + index); } + /** \internal */ template<int StoreMode> EIGEN_STRONG_INLINE void writePacket(Index row, Index col, const PacketScalar& x) { @@ -153,6 +156,7 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::type : row + col * m_storage.rows()), x); } + /** \internal */ template<int StoreMode> EIGEN_STRONG_INLINE void writePacket(Index index, const PacketScalar& x) { |