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

Public Member Functions

Index col () const
 
Index index () const
 
 InnerUpperIterator (const SkylineMatrix &mat, Index outer)
 
 operator bool () const
 
InnerUpperIteratoroperator++ ()
 
InnerUpperIteratoroperator+= (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_ >::InnerUpperIterator

Definition at line 737 of file SkylineMatrix.h.

Constructor & Destructor Documentation

◆ InnerUpperIterator()

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

Definition at line 740 of file SkylineMatrix.h.

741  : m_matrix(mat), m_outer(outer),
742  m_id(Options_ == RowMajor ? mat.m_colStartIndex[outer] : mat.m_rowStartIndex[outer] + 1),
743  m_start(m_id),
744  m_end(Options_ == RowMajor ? mat.m_colStartIndex[outer + 1] : mat.m_rowStartIndex[outer + 1] + 1) {
745  }
MatrixXf mat

Member Function Documentation

◆ col()

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

◆ index()

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

Definition at line 769 of file SkylineMatrix.h.

769  {
770  return IsRowMajor ? m_outer - m_matrix.m_data.upperProfile(m_outer) + (m_id - m_start) :
771  m_outer + (m_id - m_start) + 1;
772  }
SkylineStorage< Scalar > m_data
Definition: SkylineMatrix.h:72

◆ operator bool()

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

Definition at line 786 of file SkylineMatrix.h.

786  {
787  return (m_id < m_end) && (m_id >= m_start);
788  }

◆ operator++()

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

Definition at line 747 of file SkylineMatrix.h.

747  {
748  m_id++;
749  return *this;
750  }

◆ operator+=()

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

Definition at line 752 of file SkylineMatrix.h.

752  {
753  m_id += shift;
754  return *this;
755  }

◆ row()

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

Definition at line 774 of file SkylineMatrix.h.

774  {
775  return IsRowMajor ? index() : m_outer;
776  }

◆ size()

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

Definition at line 782 of file SkylineMatrix.h.

782  {
783  return m_matrix.m_data.upperProfile(m_outer);
784  }

◆ value()

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

Definition at line 757 of file SkylineMatrix.h.

757  {
758  return m_matrix.m_data.upper(m_id);
759  }

◆ valuePtr()

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

Definition at line 761 of file SkylineMatrix.h.

761  {
762  return const_cast<Scalar*> (&(m_matrix.m_data.upper(m_id)));
763  }
internal::traits< SkylineMatrix< Scalar_, Options_ > >::Scalar Scalar

◆ valueRef()

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

Definition at line 765 of file SkylineMatrix.h.

765  {
766  return const_cast<Scalar&> (m_matrix.m_data.upper(m_id));
767  }

Member Data Documentation

◆ m_end

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

Definition at line 795 of file SkylineMatrix.h.

◆ m_id

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

Definition at line 793 of file SkylineMatrix.h.

◆ m_matrix

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

Definition at line 791 of file SkylineMatrix.h.

◆ m_outer

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

Definition at line 792 of file SkylineMatrix.h.

◆ m_start

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

Definition at line 794 of file SkylineMatrix.h.


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