Dem Bones  1.2.0
Skinning Decomposition Library
Dem::indexing_functor_vector< ArgType, IndexType > Class Template Reference

#include <Indexing.h>

Public Types

typedef Eigen::Matrix< typename ArgType::Scalar, IndexType::SizeAtCompileTime, 1, Eigen::ColMajor, IndexType::MaxSizeAtCompileTime, 1 > VectorType
 

Public Member Functions

 indexing_functor_vector (const ArgType &arg, const IndexType &indices)
 
const ArgType::Scalar & operator() (Eigen::Index idx) const
 

Detailed Description

template<class ArgType, class IndexType>
class Dem::indexing_functor_vector< ArgType, IndexType >

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

Definition at line 93 of file Indexing.h.

Member Typedef Documentation

◆ VectorType

template<class ArgType , class IndexType >
typedef Eigen::Matrix<typename ArgType::Scalar, IndexType::SizeAtCompileTime, 1, Eigen::ColMajor, IndexType::MaxSizeAtCompileTime, 1> Dem::indexing_functor_vector< ArgType, IndexType >::VectorType

Definition at line 102 of file Indexing.h.

Constructor & Destructor Documentation

◆ indexing_functor_vector()

template<class ArgType , class IndexType >
Dem::indexing_functor_vector< ArgType, IndexType >::indexing_functor_vector ( const ArgType &  arg,
const IndexType &  indices 
)
inline

Definition at line 103 of file Indexing.h.

104  : m_arg(arg), m_indices(indices) {}

Member Function Documentation

◆ operator()()

template<class ArgType , class IndexType >
const ArgType::Scalar& Dem::indexing_functor_vector< ArgType, IndexType >::operator() ( Eigen::Index  idx) const
inline

Definition at line 105 of file Indexing.h.

105  {
106  return m_arg(m_indices[idx]);
107  }

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