MOAB  4.9.3pre
Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator Class Reference

#include <SparseCompressedBase.h>

Collaboration diagram for Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator:

List of all members.

Public Member Functions

 ReverseInnerIterator (const SparseCompressedBase &mat, Index outer)
 ReverseInnerIterator (const SparseCompressedBase &mat)
 ReverseInnerIterator (const internal::CompressedStorage< Scalar, StorageIndex > &data)
ReverseInnerIteratoroperator-- ()
const Scalarvalue () const
ScalarvalueRef ()
StorageIndex index () const
Index outer () const
Index row () const
Index col () const
 operator bool () const

Protected Attributes

const Scalarm_values
const StorageIndexm_indices
const
internal::variable_if_dynamic
< Index,
Derived::IsVectorAtCompileTime?0:Dynamic
m_outer
Index m_id
const
internal::variable_if_dynamic
< Index,
Derived::IsVectorAtCompileTime?0:Dynamic
m_start

Detailed Description

template<typename Derived>
class Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator

Definition at line 195 of file SparseCompressedBase.h.


Constructor & Destructor Documentation

template<typename Derived>
Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::ReverseInnerIterator ( const SparseCompressedBase mat,
Index  outer 
) [inline]

Definition at line 198 of file SparseCompressedBase.h.

      : m_values(mat.valuePtr()), m_indices(mat.innerIndexPtr()), m_outer(outer)
    {
      if(Derived::IsVectorAtCompileTime && mat.outerIndexPtr()==0)
      {
        m_start = 0;
        m_id = mat.nonZeros();
      }
      else
      {
        m_start.value() = mat.outerIndexPtr()[outer];
        if(mat.isCompressed())
          m_id = mat.outerIndexPtr()[outer+1];
        else
          m_id = m_start.value() + mat.innerNonZeroPtr()[outer];
      }
    }
template<typename Derived>
Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::ReverseInnerIterator ( const SparseCompressedBase mat) [inline, explicit]

Definition at line 216 of file SparseCompressedBase.h.

      : m_values(mat.valuePtr()), m_indices(mat.innerIndexPtr()), m_outer(0), m_start(0), m_id(mat.nonZeros())
    {
      EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived);
    }
template<typename Derived>
Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::ReverseInnerIterator ( const internal::CompressedStorage< Scalar, StorageIndex > &  data) [inline, explicit]

Definition at line 222 of file SparseCompressedBase.h.

      : m_values(data.valuePtr()), m_indices(data.indexPtr()), m_outer(0), m_start(0), m_id(data.size())
    {
      EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived);
    }

Member Function Documentation

template<typename Derived>
Index Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::col ( ) const [inline]

Definition at line 236 of file SparseCompressedBase.h.

{ return IsRowMajor ? index() : m_outer.value(); }
template<typename Derived>
StorageIndex Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::index ( ) const [inline]

Definition at line 233 of file SparseCompressedBase.h.

{ return m_indices[m_id-1]; }
template<typename Derived>
Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::operator bool ( ) const [inline]

Definition at line 238 of file SparseCompressedBase.h.

{ return (m_id > m_start.value()); }
template<typename Derived>
ReverseInnerIterator& Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::operator-- ( ) [inline]

Definition at line 228 of file SparseCompressedBase.h.

{ --m_id; return *this; }
template<typename Derived>
Index Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::outer ( ) const [inline]

Definition at line 234 of file SparseCompressedBase.h.

{ return m_outer.value(); }
template<typename Derived>
Index Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::row ( ) const [inline]

Definition at line 235 of file SparseCompressedBase.h.

{ return IsRowMajor ? m_outer.value() : index(); }
template<typename Derived>
const Scalar& Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::value ( ) const [inline]

Definition at line 230 of file SparseCompressedBase.h.

{ return m_values[m_id-1]; }
template<typename Derived>
Scalar& Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::valueRef ( ) [inline]

Definition at line 231 of file SparseCompressedBase.h.

{ return const_cast<Scalar&>(m_values[m_id-1]); }

Member Data Documentation

template<typename Derived>
Index Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::m_id [protected]

Definition at line 244 of file SparseCompressedBase.h.

template<typename Derived>
const StorageIndex* Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::m_indices [protected]

Definition at line 242 of file SparseCompressedBase.h.

template<typename Derived>
const internal::variable_if_dynamic<Index,Derived::IsVectorAtCompileTime?0:Dynamic> Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::m_outer [protected]

Definition at line 243 of file SparseCompressedBase.h.

template<typename Derived>
const internal::variable_if_dynamic<Index,Derived::IsVectorAtCompileTime?0:Dynamic> Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::m_start [protected]

Definition at line 245 of file SparseCompressedBase.h.

template<typename Derived>
const Scalar* Eigen::SparseCompressedBase< Derived >::ReverseInnerIterator::m_values [protected]

Definition at line 241 of file SparseCompressedBase.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines