RobWorkProject  24.12.4-
Public Member Functions | List of all members
EigenDecomposition< T >::MapSort Struct Reference

Sort function for ordering of eigen values and vectors. More...

#include <EigenDecomposition.hpp>

Public Member Functions

 MapSort (Eigen::Matrix< T, Eigen::Dynamic, 1 > &values)
 Construct new sort function struct. More...
 
bool operator() (const int &i0, const int &i1)
 Compare the eigen values with the given indices. More...
 

Detailed Description

template<class T = double>
struct rw::math::EigenDecomposition< T >::MapSort

Sort function for ordering of eigen values and vectors.

Constructor & Destructor Documentation

◆ MapSort()

MapSort ( Eigen::Matrix< T, Eigen::Dynamic, 1 > &  values)
inline

Construct new sort function struct.

Parameters
values[in] the eigen values.

Member Function Documentation

◆ operator()()

bool operator() ( const int &  i0,
const int &  i1 
)
inline

Compare the eigen values with the given indices.

Parameters
i0[in] index of first eigenvalue.
i1[in] index of second eigenvalue.
Returns
true if first eigenvalue comes before the second (it is smaller), false otherwise.

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