MOAB
4.9.3pre
|
#include <SparseCompressedBase.h>
Public Member Functions | |
InnerIterator () | |
InnerIterator (const InnerIterator &other) | |
InnerIterator & | operator= (const InnerIterator &other) |
InnerIterator (const SparseCompressedBase &mat, Index outer) | |
InnerIterator (const SparseCompressedBase &mat) | |
InnerIterator (const internal::CompressedStorage< Scalar, StorageIndex > &data) | |
InnerIterator & | operator++ () |
const Scalar & | value () const |
Scalar & | valueRef () |
StorageIndex | index () const |
Index | outer () const |
Index | row () const |
Index | col () const |
operator bool () const | |
Protected Types | |
typedef internal::variable_if_dynamic < Index, Derived::IsVectorAtCompileTime?0:Dynamic > | OuterType |
Protected Attributes | |
const Scalar * | m_values |
const StorageIndex * | m_indices |
const OuterType | m_outer |
Index | m_id |
Index | m_end |
Private Member Functions | |
template<typename T > | |
InnerIterator (const SparseMatrixBase< T > &, Index outer) |
Definition at line 117 of file SparseCompressedBase.h.
typedef internal::variable_if_dynamic<Index,Derived::IsVectorAtCompileTime?0:Dynamic> Eigen::SparseCompressedBase< Derived >::InnerIterator::OuterType [protected] |
Definition at line 183 of file SparseCompressedBase.h.
Eigen::SparseCompressedBase< Derived >::InnerIterator::InnerIterator | ( | ) | [inline] |
Eigen::SparseCompressedBase< Derived >::InnerIterator::InnerIterator | ( | const InnerIterator & | other | ) | [inline] |
Eigen::SparseCompressedBase< Derived >::InnerIterator::InnerIterator | ( | const SparseCompressedBase & | mat, |
Index | outer | ||
) | [inline] |
Definition at line 138 of file SparseCompressedBase.h.
: m_values(mat.valuePtr()), m_indices(mat.innerIndexPtr()), m_outer(outer) { if(Derived::IsVectorAtCompileTime && mat.outerIndexPtr()==0) { m_id = 0; m_end = mat.nonZeros(); } else { m_id = mat.outerIndexPtr()[outer]; if(mat.isCompressed()) m_end = mat.outerIndexPtr()[outer+1]; else m_end = m_id + mat.innerNonZeroPtr()[outer]; } }
Eigen::SparseCompressedBase< Derived >::InnerIterator::InnerIterator | ( | const SparseCompressedBase & | mat | ) | [inline, explicit] |
Definition at line 156 of file SparseCompressedBase.h.
Eigen::SparseCompressedBase< Derived >::InnerIterator::InnerIterator | ( | const internal::CompressedStorage< Scalar, StorageIndex > & | data | ) | [inline, explicit] |
Definition at line 162 of file SparseCompressedBase.h.
Eigen::SparseCompressedBase< Derived >::InnerIterator::InnerIterator | ( | const SparseMatrixBase< T > & | , |
Index | outer | ||
) | [private] |
Index Eigen::SparseCompressedBase< Derived >::InnerIterator::col | ( | ) | const [inline] |
Definition at line 176 of file SparseCompressedBase.h.
{ return IsRowMajor ? index() : m_outer.value(); }
StorageIndex Eigen::SparseCompressedBase< Derived >::InnerIterator::index | ( | ) | const [inline] |
Definition at line 173 of file SparseCompressedBase.h.
Eigen::SparseCompressedBase< Derived >::InnerIterator::operator bool | ( | ) | const [inline] |
Definition at line 178 of file SparseCompressedBase.h.
InnerIterator& Eigen::SparseCompressedBase< Derived >::InnerIterator::operator++ | ( | ) | [inline] |
Definition at line 168 of file SparseCompressedBase.h.
{ m_id++; return *this; }
InnerIterator& Eigen::SparseCompressedBase< Derived >::InnerIterator::operator= | ( | const InnerIterator & | other | ) | [inline] |
Index Eigen::SparseCompressedBase< Derived >::InnerIterator::outer | ( | ) | const [inline] |
Definition at line 174 of file SparseCompressedBase.h.
Index Eigen::SparseCompressedBase< Derived >::InnerIterator::row | ( | ) | const [inline] |
Definition at line 175 of file SparseCompressedBase.h.
{ return IsRowMajor ? m_outer.value() : index(); }
const Scalar& Eigen::SparseCompressedBase< Derived >::InnerIterator::value | ( | ) | const [inline] |
Definition at line 170 of file SparseCompressedBase.h.
Scalar& Eigen::SparseCompressedBase< Derived >::InnerIterator::valueRef | ( | ) | [inline] |
Definition at line 171 of file SparseCompressedBase.h.
Index Eigen::SparseCompressedBase< Derived >::InnerIterator::m_end [protected] |
Definition at line 186 of file SparseCompressedBase.h.
Index Eigen::SparseCompressedBase< Derived >::InnerIterator::m_id [protected] |
Definition at line 185 of file SparseCompressedBase.h.
const StorageIndex* Eigen::SparseCompressedBase< Derived >::InnerIterator::m_indices [protected] |
Definition at line 182 of file SparseCompressedBase.h.
const OuterType Eigen::SparseCompressedBase< Derived >::InnerIterator::m_outer [protected] |
Definition at line 184 of file SparseCompressedBase.h.
const Scalar* Eigen::SparseCompressedBase< Derived >::InnerIterator::m_values [protected] |
Definition at line 181 of file SparseCompressedBase.h.