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

#include <Indexing.h>

Public Types

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

Public Member Functions

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

Detailed Description

template<class ArgType, class RowIndexType, class ColIndexType>
class Dem::indexing_functor_row_col< ArgType, RowIndexType, ColIndexType >

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

Definition at line 24 of file Indexing.h.

Member Typedef Documentation

◆ MatrixType

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

Definition at line 34 of file Indexing.h.

Constructor & Destructor Documentation

◆ indexing_functor_row_col()

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

Definition at line 35 of file Indexing.h.

36  : m_arg(arg), m_rowIndices(row_indices), m_colIndices(col_indices) {}

Member Function Documentation

◆ operator()()

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

Definition at line 37 of file Indexing.h.

37  {
38  return m_arg(m_rowIndices[row], m_colIndices[col]);
39  }

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