Dem Bones  1.2.0
Skinning Decomposition Library
Dem::indexing_functor_row< ArgType, RowIndexType > Class Template Reference

#include <Indexing.h>

Public Types

typedef Eigen::Matrix< typename ArgType::Scalar, RowIndexType::SizeAtCompileTime, ArgType::ColsAtCompileTime, ArgType::Flags &Eigen::RowMajorBit?Eigen::RowMajor:Eigen::ColMajor, RowIndexType::MaxSizeAtCompileTime, ArgType::MaxColsAtCompileTime > MatrixType
 

Public Member Functions

 indexing_functor_row (const ArgType &arg, const RowIndexType &row_indices)
 
const ArgType::Scalar & operator() (Eigen::Index row, Eigen::Index col) const
 

Detailed Description

template<class ArgType, class RowIndexType>
class Dem::indexing_functor_row< ArgType, RowIndexType >

NullaryOp forward mapping for matrix with row indices, check: https://eigen.tuxfamily.org/dox/TopicCustomizing_NullaryExpr.html

Definition at line 59 of file Indexing.h.

Member Typedef Documentation

◆ MatrixType

template<class ArgType , class RowIndexType >
typedef Eigen::Matrix<typename ArgType::Scalar, RowIndexType::SizeAtCompileTime, ArgType::ColsAtCompileTime, ArgType::Flags& Eigen::RowMajorBit?Eigen::RowMajor:Eigen::ColMajor, RowIndexType::MaxSizeAtCompileTime, ArgType::MaxColsAtCompileTime> Dem::indexing_functor_row< ArgType, RowIndexType >::MatrixType

Definition at line 68 of file Indexing.h.

Constructor & Destructor Documentation

◆ indexing_functor_row()

template<class ArgType , class RowIndexType >
Dem::indexing_functor_row< ArgType, RowIndexType >::indexing_functor_row ( const ArgType &  arg,
const RowIndexType &  row_indices 
)
inline

Definition at line 69 of file Indexing.h.

70  : m_arg(arg), m_rowIndices(row_indices) {}

Member Function Documentation

◆ operator()()

template<class ArgType , class RowIndexType >
const ArgType::Scalar& Dem::indexing_functor_row< ArgType, RowIndexType >::operator() ( Eigen::Index  row,
Eigen::Index  col 
) const
inline

Definition at line 71 of file Indexing.h.

71  {
72  return m_arg(m_rowIndices[row], col);
73  }

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