![]() |
Controlpp
|
General algorithms that are used in multiple places in the library. More...
#include <utility>#include <optional>#include <Eigen/Dense>Go to the source code of this file.
Namespaces | |
| namespace | controlpp |
| The main namespace for the Control++ library. | |
Functions | |
| template<class Itr , class T > | |
| std::optional< std::pair< Itr, Itr > > | controlpp::find_enclosing (Itr first, Itr last, const T &v) |
| Finds elements in a range that enclose v. | |
| template<class T , int Size = Eigen::Dynamic> | |
| std::optional< std::pair< const T *, const T * > > | controlpp::find_enclosing (const Eigen::Vector< T, Size > &range, const T &v) |
| Finds elements in a range that enclose v. | |
| template<class Iterator , class T > | |
| void | controlpp::shift_up (Iterator first, Iterator last, const T &v0=T(0)) |
| Shifts the values in a range up by one position and inserts a new value (copy operation) at the beginning of the range. | |
| template<class Iterator , class T > | |
| void | controlpp::shift_up (Iterator first, Iterator last, T &&v0=T(0)) |
| Shifts the values in a range up by one position and inserts a new value (move operation) at the beginning of the range. | |
General algorithms that are used in multiple places in the library.