bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
cubeai_traits.h
Go to the documentation of this file.
1#ifndef CUBEAI_TRAITS_H
2#define CUBEAI_TRAITS_H
3
4#include "cubeai/base/cubeai_types.h"
5
6#include <vector>
7
8namespace cuberl{
9namespace utils{
10
11template<typename VecType>
13
14
15template<typename T>
16struct vector_value_type_trait<std::vector<T>>{
17 typedef typename std::vector<T>::value_type value_type;
18};
19
20
21template<typename T>
23 typedef typename std::vector<T>::value_type value_type;
24};
25
26template<typename T>
27struct vector_value_type_trait<std::pair<std::vector<T>, uint_t>>{
28 typedef typename std::vector<T>::value_type value_type;
29};
30
31template<typename T>
32struct vector_value_type_trait<std::pair<DynVec<T>, uint_t>>{
33 typedef typename std::vector<T>::value_type value_type;
34};
35
36
37}
38}
39
40#endif // CUBEAI_TRAITS_H
Eigen::RowVectorX< T > DynVec
Dynamically sized row vector.
Definition bitrl_types.h:74
Various utilities used when working with RL problems.
Definition cuberl_types.h:16
std::vector< T >::value_type value_type
Definition cubeai_traits.h:23
std::vector< T >::value_type value_type
Definition cubeai_traits.h:33
std::vector< T >::value_type value_type
Definition cubeai_traits.h:28
std::vector< T >::value_type value_type
Definition cubeai_traits.h:17
Definition cubeai_traits.h:12