bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
matrix_utilities.h File Reference
#include "bitrl/base/bitrl_types.h"
#include <initializer_list>
#include <random>
#include <set>
Include dependency graph for matrix_utilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  bitrl
 Various utilities used when working with RL problems.
namespace  bitrl::maths

Functions

template<typename MatType>
void bitrl::maths::exchange_rows (MatType &mat, uint_t r1, uint_t r2)
 Exchange the rows of the matrix.
template<typename MatType>
std::set< uint_t > bitrl::maths::shuffle_matrix_rows (MatType &mat)
 Shuffle the rows of the matrix. Returns a set with the rows that have been shuffled.
template<typename T>
DynVec< T > bitrl::maths::get_row (const DynMat< T > &matrix, uint_t row_idx)
 Extract the cidx-th column from the matrix.
template<typename T>
T bitrl::maths::get_row_max (const DynMat< T > &matrix, uint_t row_idx)
template<typename T>
T bitrl::maths::get_row_min (const DynMat< T > &matrix, uint_t row_idx)