qpmad
Eigen-based C++ QP solver.
Public Member Functions | Private Attributes | Friends | List of all members
qpmad_utils::SelectionMatrix Class Reference

Detailed Description

Selection matrix.

Definition at line 658 of file eigenut_misc.h.

#include <eigenut_misc.h>

Public Member Functions

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

Private Attributes

std::size_t step_size_
 
std::size_t first_index_
 

Friends

template<class t_Derived >
Eigen::Map< const QPMAD_UTILS_DYNAMIC_MATRIX(typename Eigen::PlainObjectBase< t_Derived >::Scalar), 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()

qpmad_utils::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 679 of file eigenut_misc.h.

Friends And Related Function Documentation

◆ operator *

template<class t_Derived >
Eigen::Map< const QPMAD_UTILS_DYNAMIC_MATRIX( typename Eigen::PlainObjectBase<t_Derived>::Scalar ), 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 703 of file eigenut_misc.h.

Member Data Documentation

◆ first_index_

std::size_t qpmad_utils::SelectionMatrix::first_index_
private

Definition at line 670 of file eigenut_misc.h.

◆ step_size_

std::size_t qpmad_utils::SelectionMatrix::step_size_
private

Definition at line 669 of file eigenut_misc.h.


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