humoto
Public Member Functions | Private Attributes | Friends | List of all members
etools::SelectionMatrix Class Reference

Detailed Description

Selection matrix.

Definition at line 778 of file eigentools.h.

#include <eigentools.h>

Public Member Functions

 SelectionMatrix (const std::size_t step_size, const std::size_t first_index)
 Constructore. More...
 

Private Attributes

std::size_t first_index_
 
std::size_t step_size_
 

Friends

template<class t_Derived >
Eigen::Map< const Eigen::Matrix< typename Eigen::PlainObjectBase< t_Derived >::Scalar, Eigen::Dynamic, Eigen::Dynamic >, Eigen::Unaligned, Eigen::Stride< Eigen::Dynamic, Eigen::Dynamic > > operator* (const SelectionMatrix &, const Eigen::PlainObjectBase< t_Derived > &)
 Multiply selection matrix by a generic Eigen matrix (select rows) More...
 

Constructor & Destructor Documentation

◆ SelectionMatrix()

etools::SelectionMatrix::SelectionMatrix ( const std::size_t  step_size,
const std::size_t  first_index 
)
inline

Constructore.

Parameters
[in]step_sizestep size of selection: 3 – each third element
[in]first_indexindex of the first element for selection

Definition at line 799 of file eigentools.h.

Friends And Related Function Documentation

◆ operator*

template<class t_Derived >
Eigen::Map< const Eigen::Matrix< typename Eigen::PlainObjectBase<t_Derived>::Scalar , Eigen::Dynamic, Eigen::Dynamic>, Eigen::Unaligned, Eigen::Stride<Eigen::Dynamic, Eigen::Dynamic> > operator* ( const SelectionMatrix selector,
const Eigen::PlainObjectBase< t_Derived > &  matrix 
)
friend

Multiply selection matrix by a generic Eigen matrix (select rows)

Template Parameters
t_DerivedEigen parameter
Parameters
[in]selector
[in]matrix
Returns
selected rows

Definition at line 823 of file eigentools.h.

Member Data Documentation

◆ first_index_

std::size_t etools::SelectionMatrix::first_index_
private

Definition at line 790 of file eigentools.h.

◆ step_size_

std::size_t etools::SelectionMatrix::step_size_
private

Definition at line 789 of file eigentools.h.


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