Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator Class Reference

#include <BlockSparseMatrix.h>

Public Member Functions

 BlockInnerIterator (const BlockSparseMatrix &mat, const Index outer)
 
BlockInnerIteratoroperator++ ()
 
const Map< const BlockScalarvalue () const
 
Map< BlockScalarvalueRef ()
 
Index index () const
 
Index outer () const
 
Index row () const
 
Index col () const
 
Index rows () const
 
Index cols () const
 
 operator bool () const
 

Protected Attributes

const BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex > & m_mat
 
const Index m_outer
 
Index m_id
 
Index m_end
 

Constructor & Destructor Documentation

◆ BlockInnerIterator()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::BlockInnerIterator ( const BlockSparseMatrix mat,
const Index  outer 
)
inline
Index outer() const
Definition: BlockSparseMatrix.h:903
const BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex > & m_mat
Definition: BlockSparseMatrix.h:921
Index m_id
Definition: BlockSparseMatrix.h:923
const Index m_outer
Definition: BlockSparseMatrix.h:922
Index m_end
Definition: BlockSparseMatrix.h:924
StorageIndex * m_outerIndex
Definition: SparseMatrix.h:153

Member Function Documentation

◆ col()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Index Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::col ( ) const
inline
907 { return outer(); }

◆ cols()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Index Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::cols ( ) const
inline

◆ index()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Index Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::index ( ) const
inline
902 { return m_mat.m_indices[m_id]; }
StorageIndex * m_indices
Definition: BlockSparseMatrix.h:877

◆ operator bool()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::operator bool ( ) const
inline
918 { return (m_id < m_end); }

◆ operator++()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
BlockInnerIterator& Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::operator++ ( )
inline
890  {
891  m_id++;
892  return *this;
893  }

◆ outer()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Index Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::outer ( ) const
inline
903 { return m_outer; }

◆ row()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Index Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::row ( ) const
inline
905 { return index(); }
Index index() const
Definition: BlockSparseMatrix.h:902

◆ rows()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Index Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::rows ( ) const
inline

◆ value()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
const Map<const BlockScalar> Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::value ( ) const
inline
895  {
896  return Map<const BlockScalar>(&(m_mat.m_values[m_mat.blockPtr(m_id)]), rows(), cols());
897  }
Index rows() const
Definition: BlockSparseMatrix.h:909
Index cols() const
Definition: BlockSparseMatrix.h:914
Index blockPtr(Index id) const
Definition: BlockSparseMatrix.h:846
Scalar * m_values
Definition: BlockSparseMatrix.h:874

References Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::cols(), and Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::rows().

◆ valueRef()

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Map<BlockScalar> Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::valueRef ( )
inline

Member Data Documentation

◆ m_end

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Index Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::m_end
protected

◆ m_id

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
Index Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::m_id
protected

◆ m_mat

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
const BlockSparseMatrix<Scalar_, _BlockAtCompileTime, Options_, StorageIndex>& Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::m_mat
protected

◆ m_outer

template<typename Scalar_ , int _BlockAtCompileTime, int Options_, typename StorageIndex_ >
const Index Eigen::BlockSparseMatrix< Scalar_, _BlockAtCompileTime, Options_, StorageIndex_ >::BlockInnerIterator::m_outer
protected

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