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

#include <BlockSparseMatrix.h>

Public Types

enum  { ColsAtCompileTime = VectorType::ColsAtCompileTime , RowsAtCompileTime = VectorType::RowsAtCompileTime , Flags = VectorType::Flags }
 
typedef Ref< Matrix< typename VectorType::Scalar, RowsAtCompileTime, ColsAtCompileTime > > Scalar
 
typedef BlockSparseMatrixT::Index Index
 

Public Member Functions

 BlockVectorReturn (const BlockSparseMatrixT &spblockmat, VectorType &vec)
 
Index size () const
 
Scalar coeffRef (Index bi)
 
Scalar coeffRef (Index bi, Index j)
 

Protected Attributes

const BlockSparseMatrixT & m_spblockmat
 
VectorTypem_vec
 

Member Typedef Documentation

◆ Index

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

◆ Scalar

template<typename BlockSparseMatrixT , typename VectorType >
typedef Ref<Matrix<typename VectorType::Scalar, RowsAtCompileTime, ColsAtCompileTime> > Eigen::BlockVectorReturn< BlockSparseMatrixT, VectorType >::Scalar

Member Enumeration Documentation

◆ anonymous enum

template<typename BlockSparseMatrixT , typename VectorType >
anonymous enum
Enumerator
ColsAtCompileTime 
RowsAtCompileTime 
Flags 
182  {
183  ColsAtCompileTime = VectorType::ColsAtCompileTime,
184  RowsAtCompileTime = VectorType::RowsAtCompileTime,
185  Flags = VectorType::Flags
186  };
@ ColsAtCompileTime
Definition: BlockSparseMatrix.h:183
@ RowsAtCompileTime
Definition: BlockSparseMatrix.h:184
Extend namespace for flags.
Definition: fsi_chan_precond_driver.cc:56

Constructor & Destructor Documentation

◆ BlockVectorReturn()

template<typename BlockSparseMatrixT , typename VectorType >
Eigen::BlockVectorReturn< BlockSparseMatrixT, VectorType >::BlockVectorReturn ( const BlockSparseMatrixT &  spblockmat,
VectorType vec 
)
inline
191 : m_spblockmat(spblockmat), m_vec(vec) {}
const BlockSparseMatrixT & m_spblockmat
Definition: BlockSparseMatrix.h:205
VectorType & m_vec
Definition: BlockSparseMatrix.h:206

Member Function Documentation

◆ coeffRef() [1/2]

template<typename BlockSparseMatrixT , typename VectorType >
Scalar Eigen::BlockVectorReturn< BlockSparseMatrixT, VectorType >::coeffRef ( Index  bi)
inline
193  {
194  Index startRow = m_spblockmat.blockRowsIndex(bi);
195  Index rowSize = m_spblockmat.blockRowsIndex(bi + 1) - startRow;
196  return m_vec.middleRows(startRow, rowSize);
197  }
BlockSparseMatrixT::Index Index
Definition: BlockSparseMatrix.h:188

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

◆ coeffRef() [2/2]

template<typename BlockSparseMatrixT , typename VectorType >
Scalar Eigen::BlockVectorReturn< BlockSparseMatrixT, VectorType >::coeffRef ( Index  bi,
Index  j 
)
inline
198  {
199  Index startRow = m_spblockmat.blockRowsIndex(bi);
200  Index rowSize = m_spblockmat.blockRowsIndex(bi + 1) - startRow;
201  return m_vec.block(startRow, j, rowSize, 1);
202  }
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

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

◆ size()

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

Member Data Documentation

◆ m_spblockmat

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

◆ m_vec

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

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