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

#include <BlockSparseMatrix.h>

Public Types

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

Public Member Functions

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

Protected Attributes

const BlockSparseMatrixT & m_spblockmat
 
const VectorTypem_vec
 

Member Typedef Documentation

◆ Index

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

◆ 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

Member Enumeration Documentation

◆ anonymous enum

template<typename BlockSparseMatrixT , typename VectorType >
anonymous enum
Enumerator
BlockSize 
ColsAtCompileTime 
RowsAtCompileTime 
Flags 
144  {
145  BlockSize = BlockSparseMatrixT::BlockSize,
146  ColsAtCompileTime = VectorType::ColsAtCompileTime,
147  RowsAtCompileTime = VectorType::RowsAtCompileTime,
148  Flags = VectorType::Flags
149  };
@ ColsAtCompileTime
Definition: BlockSparseMatrix.h:146
@ BlockSize
Definition: BlockSparseMatrix.h:145
@ RowsAtCompileTime
Definition: BlockSparseMatrix.h:147
Extend namespace for flags.
Definition: fsi_chan_precond_driver.cc:56

Constructor & Destructor Documentation

◆ BlockVectorView()

template<typename BlockSparseMatrixT , typename VectorType >
Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::BlockVectorView ( const BlockSparseMatrixT &  spblockmat,
const VectorType vec 
)
inline
156 : m_spblockmat(spblockmat), m_vec(vec) {}
const BlockSparseMatrixT & m_spblockmat
Definition: BlockSparseMatrix.h:171
const VectorType & m_vec
Definition: BlockSparseMatrix.h:172

Member Function Documentation

◆ coeff() [1/2]

template<typename BlockSparseMatrixT , typename VectorType >
Scalar Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::coeff ( Index  bi) const
inline
159  {
160  Index startRow = m_spblockmat.blockRowsIndex(bi);
161  Index rowSize = m_spblockmat.blockRowsIndex(bi + 1) - startRow;
162  return m_vec.middleRows(startRow, rowSize);
163  }
BlockSparseMatrixT::Index Index
Definition: BlockSparseMatrix.h:153

References Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::m_spblockmat, and Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::m_vec.

◆ coeff() [2/2]

template<typename BlockSparseMatrixT , typename VectorType >
Scalar Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::coeff ( Index  bi,
Index  j 
) const
inline
164  {
165  Index startRow = m_spblockmat.blockRowsIndex(bi);
166  Index rowSize = m_spblockmat.blockRowsIndex(bi + 1) - startRow;
167  return m_vec.block(startRow, j, rowSize, 1);
168  }
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

References j, Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::m_spblockmat, and Eigen::BlockVectorView< BlockSparseMatrixT, VectorType >::m_vec.

◆ cols()

◆ size()

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

Member Data Documentation

◆ m_spblockmat

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

◆ m_vec

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

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