Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator Class Reference

Public Member Functions

Index col () const
 
Index index () const
 
 InnerLowerIterator (const SkylineMatrix &mat, Index outer)
 
 operator bool () const
 
InnerLowerIteratoroperator++ ()
 
InnerLowerIteratoroperator+= (Index shift)
 
Index row () const
 
size_t size () const
 
Scalar value () const
 
ScalarvaluePtr ()
 
ScalarvalueRef ()
 

Protected Attributes

const Index m_end
 
Index m_id
 
const SkylineMatrixm_matrix
 
const Index m_outer
 
const Index m_start
 

Detailed Description

template<typename Scalar_, int Options_>
class Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator

Definition at line 799 of file SkylineMatrix.h.

Constructor & Destructor Documentation

◆ InnerLowerIterator()

template<typename Scalar_ , int Options_>
Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::InnerLowerIterator ( const SkylineMatrix mat,
Index  outer 
)
inline

Definition at line 802 of file SkylineMatrix.h.

803  : m_matrix(mat),
804  m_outer(outer),
805  m_id(Options_ == RowMajor ? mat.m_rowStartIndex[outer] : mat.m_colStartIndex[outer] + 1),
806  m_start(m_id),
807  m_end(Options_ == RowMajor ? mat.m_rowStartIndex[outer + 1] : mat.m_colStartIndex[outer + 1] + 1) {
808  }
MatrixXf mat

Member Function Documentation

◆ col()

template<typename Scalar_ , int Options_>
Index Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::col ( ) const
inline

◆ index()

template<typename Scalar_ , int Options_>
Index Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::index ( ) const
inline

Definition at line 832 of file SkylineMatrix.h.

832  {
833  return IsRowMajor ? m_outer - m_matrix.m_data.lowerProfile(m_outer) + (m_id - m_start) :
834  m_outer + (m_id - m_start) + 1;
835  ;
836  }
SkylineStorage< Scalar > m_data
Definition: SkylineMatrix.h:72

◆ operator bool()

template<typename Scalar_ , int Options_>
Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::operator bool ( ) const
inline

Definition at line 850 of file SkylineMatrix.h.

850  {
851  return (m_id < m_end) && (m_id >= m_start);
852  }

◆ operator++()

template<typename Scalar_ , int Options_>
InnerLowerIterator& Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::operator++ ( )
inline

Definition at line 810 of file SkylineMatrix.h.

810  {
811  m_id++;
812  return *this;
813  }

◆ operator+=()

template<typename Scalar_ , int Options_>
InnerLowerIterator& Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::operator+= ( Index  shift)
inline

Definition at line 815 of file SkylineMatrix.h.

815  {
816  m_id += shift;
817  return *this;
818  }

◆ row()

template<typename Scalar_ , int Options_>
Index Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::row ( ) const
inline

Definition at line 838 of file SkylineMatrix.h.

838  {
839  return IsRowMajor ? m_outer : index();
840  }

◆ size()

template<typename Scalar_ , int Options_>
size_t Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::size ( ) const
inline

Definition at line 846 of file SkylineMatrix.h.

846  {
847  return m_matrix.m_data.lowerProfile(m_outer);
848  }

◆ value()

template<typename Scalar_ , int Options_>
Scalar Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::value ( ) const
inline

Definition at line 820 of file SkylineMatrix.h.

820  {
821  return m_matrix.m_data.lower(m_id);
822  }

◆ valuePtr()

template<typename Scalar_ , int Options_>
Scalar* Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::valuePtr ( )
inline

Definition at line 824 of file SkylineMatrix.h.

824  {
825  return const_cast<Scalar*> (&(m_matrix.m_data.lower(m_id)));
826  }
internal::traits< SkylineMatrix< Scalar_, Options_ > >::Scalar Scalar

◆ valueRef()

template<typename Scalar_ , int Options_>
Scalar& Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::valueRef ( )
inline

Definition at line 828 of file SkylineMatrix.h.

828  {
829  return const_cast<Scalar&> (m_matrix.m_data.lower(m_id));
830  }

Member Data Documentation

◆ m_end

template<typename Scalar_ , int Options_>
const Index Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::m_end
protected

Definition at line 859 of file SkylineMatrix.h.

◆ m_id

template<typename Scalar_ , int Options_>
Index Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::m_id
protected

Definition at line 857 of file SkylineMatrix.h.

◆ m_matrix

template<typename Scalar_ , int Options_>
const SkylineMatrix& Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::m_matrix
protected

Definition at line 855 of file SkylineMatrix.h.

◆ m_outer

template<typename Scalar_ , int Options_>
const Index Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::m_outer
protected

Definition at line 856 of file SkylineMatrix.h.

◆ m_start

template<typename Scalar_ , int Options_>
const Index Eigen::SkylineMatrix< Scalar_, Options_ >::InnerLowerIterator::m_start
protected

Definition at line 858 of file SkylineMatrix.h.


The documentation for this class was generated from the following file: