Eigen::BlockVectorView< BlockSparseMatrixT, VectorType > Class Template Reference

Public Types

enum  {
  BlockSize ,
  ColsAtCompileTime ,
  RowsAtCompileTime ,
  Flags
}
 
typedef BlockSparseMatrixT::Index Index
 
typedef Ref< const Matrix< typename BlockSparseMatrixT::Scalar,(RowsAtCompileTime==1)? 1 :BlockSize,(ColsAtCompileTime==1)? 1 :BlockSize > > Scalar
 

Public Member Functions

 BlockVectorView (const BlockSparseMatrixT &spblockmat, const VectorType &vec)
 
Scalar coeff (Index bi) const
 
Scalar coeff (Index bi, Index j) const
 
Index cols () const
 
Index size () const
 

Protected Attributes

const BlockSparseMatrixT & m_spblockmat
 
const VectorType & m_vec
 

Detailed Description

template<typename BlockSparseMatrixT, typename VectorType>
class Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >

Definition at line 160 of file BlockSparseMatrix.h.

Member Typedef Documentation

◆ Index

template<typename BlockSparseMatrixT , typename VectorType >
typedef BlockSparseMatrixT::Index Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::Index

Definition at line 170 of file BlockSparseMatrix.h.

◆ Scalar

template<typename BlockSparseMatrixT , typename VectorType >
typedef Ref<const Matrix<typename BlockSparseMatrixT::Scalar, (RowsAtCompileTime==1)? 1 : BlockSize, (ColsAtCompileTime==1)? 1 : BlockSize> > Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::Scalar

Definition at line 169 of file BlockSparseMatrix.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename BlockSparseMatrixT , typename VectorType >
anonymous enum
Enumerator
BlockSize 
ColsAtCompileTime 
RowsAtCompileTime 
Flags 

Definition at line 163 of file BlockSparseMatrix.h.

163  {
164  BlockSize = BlockSparseMatrixT::BlockSize,
165  ColsAtCompileTime = VectorType::ColsAtCompileTime,
166  RowsAtCompileTime = VectorType::RowsAtCompileTime,
167  Flags = VectorType::Flags
168  };

Constructor & Destructor Documentation

◆ BlockVectorView()

template<typename BlockSparseMatrixT , typename VectorType >
Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::BlockVectorView ( const BlockSparseMatrixT &  spblockmat,
const VectorType &  vec 
)
inline

Definition at line 172 of file BlockSparseMatrix.h.

173  : m_spblockmat(spblockmat),m_vec(vec)
174  { }
const BlockSparseMatrixT & m_spblockmat
const VectorType & m_vec

Member Function Documentation

◆ coeff() [1/2]

template<typename BlockSparseMatrixT , typename VectorType >
Scalar Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::coeff ( Index  bi) const
inline

Definition at line 183 of file BlockSparseMatrix.h.

184  {
185  Index startRow = m_spblockmat.blockRowsIndex(bi);
186  Index rowSize = m_spblockmat.blockRowsIndex(bi+1) - startRow;
187  return m_vec.middleRows(startRow, rowSize);
188  }
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index

◆ coeff() [2/2]

template<typename BlockSparseMatrixT , typename VectorType >
Scalar Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::coeff ( Index  bi,
Index  j 
) const
inline

Definition at line 189 of file BlockSparseMatrix.h.

190  {
191  Index startRow = m_spblockmat.blockRowsIndex(bi);
192  Index rowSize = m_spblockmat.blockRowsIndex(bi+1) - startRow;
193  return m_vec.block(startRow, j, rowSize, 1);
194  }

◆ cols()

template<typename BlockSparseMatrixT , typename VectorType >
Index Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::cols ( void  ) const
inline

Definition at line 175 of file BlockSparseMatrix.h.

176  {
177  return m_vec.cols();
178  }

◆ size()

template<typename BlockSparseMatrixT , typename VectorType >
Index Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::size ( ) const
inline

Definition at line 179 of file BlockSparseMatrix.h.

180  {
181  return m_spblockmat.blockRows();
182  }

Member Data Documentation

◆ m_spblockmat

template<typename BlockSparseMatrixT , typename VectorType >
const BlockSparseMatrixT& Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::m_spblockmat
protected

Definition at line 196 of file BlockSparseMatrix.h.

◆ m_vec

template<typename BlockSparseMatrixT , typename VectorType >
const VectorType& Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::m_vec
protected

Definition at line 197 of file BlockSparseMatrix.h.


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