bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
matrix_utilities.h File Reference
#include "cuberl/base/cuberl_types.h"
#include <random>
#include <set>
#include <initializer_list>
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  cuberl
 Various utilities used when working with RL problems.
 
namespace  cuberl::maths
 

Functions

template<typename MatType >
void cuberl::maths::exchange_rows (MatType &mat, uint_t r1, uint_t r2)
 Exchange the rows of the matrix.
 
template<typename MatType >
std::set< uint_tcuberl::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 > cuberl::maths::get_row (const DynMat< T > &matrix, uint_t row_idx)
 Extract the cidx-th column from the matrix.
 
template<typename T >
cuberl::maths::get_row_max (const DynMat< T > &matrix, uint_t row_idx)
 
template<typename T >
cuberl::maths::get_row_min (const DynMat< T > &matrix, uint_t row_idx)