Dem Bones  1.2.0
Skinning Decomposition Library
Dem Namespace Reference

Classes

class  ConvexLS
 Linear least squares solver with non-negativity constraint and optional affinity constraint. More...
 
class  DemBones
 Smooth skinning decomposition with rigid bones and sparse, convex weights. More...
 
class  DemBonesExt
 Extended class to handle hierarchical skeleton with local rotations/translations and bind matrices. More...
 
class  indexing_functor_row
 
class  indexing_functor_row_col
 
class  indexing_functor_vector
 

Functions

template<class ArgType , class RowIndexType , class ColIndexType >
Eigen::CwiseNullaryOp< indexing_functor_row_col< ArgType, RowIndexType, ColIndexType >, typename indexing_functor_row_col< ArgType, RowIndexType, ColIndexType >::MatrixType > indexing_row_col (const Eigen::MatrixBase< ArgType > &arg, const RowIndexType &row_indices, const ColIndexType &col_indices)
 
template<class ArgType , class RowIndexType >
Eigen::CwiseNullaryOp< indexing_functor_row< ArgType, RowIndexType >, typename indexing_functor_row< ArgType, RowIndexType >::MatrixType > indexing_row (const Eigen::MatrixBase< ArgType > &arg, const RowIndexType &row_indices)
 
template<class ArgType , class IndexType >
Eigen::CwiseNullaryOp< indexing_functor_vector< ArgType, IndexType >, typename indexing_functor_vector< ArgType, IndexType >::VectorType > indexing_vector (const Eigen::MatrixBase< ArgType > &arg, const IndexType &indices)
 

Function Documentation

◆ indexing_row()

template<class ArgType , class RowIndexType >
Eigen::CwiseNullaryOp<indexing_functor_row<ArgType, RowIndexType>, typename indexing_functor_row<ArgType, RowIndexType>::MatrixType> Dem::indexing_row ( const Eigen::MatrixBase< ArgType > &  arg,
const RowIndexType &  row_indices 
)

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

Definition at line 81 of file Indexing.h.

81  {
82  typedef indexing_functor_row<ArgType, RowIndexType> Func;
83  typedef typename Func::MatrixType MatrixType;
84  return MatrixType::NullaryExpr(row_indices.size(), arg.cols(), Func(arg.derived(), row_indices));
85 }

◆ indexing_row_col()

template<class ArgType , class RowIndexType , class ColIndexType >
Eigen::CwiseNullaryOp<indexing_functor_row_col<ArgType, RowIndexType, ColIndexType>, typename indexing_functor_row_col<ArgType, RowIndexType, ColIndexType>::MatrixType> Dem::indexing_row_col ( const Eigen::MatrixBase< ArgType > &  arg,
const RowIndexType &  row_indices,
const ColIndexType &  col_indices 
)

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

Definition at line 47 of file Indexing.h.

47  {
48  typedef indexing_functor_row_col<ArgType, RowIndexType, ColIndexType> Func;
49  typedef typename Func::MatrixType MatrixType;
50  return MatrixType::NullaryExpr(row_indices.size(), col_indices.size(), Func(arg.derived(), row_indices, col_indices));
51 }

◆ indexing_vector()

template<class ArgType , class IndexType >
Eigen::CwiseNullaryOp<indexing_functor_vector<ArgType, IndexType>, typename indexing_functor_vector<ArgType, IndexType>::VectorType> Dem::indexing_vector ( const Eigen::MatrixBase< ArgType > &  arg,
const IndexType &  indices 
)

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

Definition at line 115 of file Indexing.h.

115  {
116  typedef indexing_functor_vector<ArgType, IndexType> Func;
117  typedef typename Func::VectorType VectorType;
118  return VectorType::NullaryExpr(indices.size(), Func(arg.derived(), indices));
119 }