bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
cuberl_types.h
Go to the documentation of this file.
1#ifndef CUBEAI_TYPES_H
2#define CUBEAI_TYPES_H
3
4#include "bitrl/bitrl_types.h"
5#include "cuberl/base/cubeai_config.h"
6
7#ifdef USE_PYTORCH
8#include <torch/torch.h>
9#endif
10
11#include <cstddef>
12#include <string>
13
14
15namespace cuberl
16{
17
18 using namespace bitrl;
19
23 using bitrl::int_t;
24
28 using bitrl::lint_t;
29
33 using bitrl::float_t;
34
38 using bitrl::real_t;
39
43 using bitrl::DynMat;
44
48 using bitrl::SquareMat;
49
53 using bitrl::Mat;
54
58 using bitrl::DynVec;
59
63 using bitrl::FloatVec;
64
68 using bitrl::RealVec;
69
73 using bitrl::Null;
74
79
80#ifdef USE_PYTORCH
84 struct torch_t {};
85
89 typedef long int torch_int_t;
90
94 typedef torch::Tensor torch_tensor_t;
95
96
97 template<typename T>
98 struct torch_tensor_value_type{
99 typedef T value_type;
100 };
101#endif
102
103
104
105}
106
107#endif
Definition bitrl_consts.h:14
int int_t
integer type
Definition bitrl_types.h:33
long int lint_t
long int type
Definition bitrl_types.h:38
double real_t
real_t
Definition bitrl_types.h:23
Eigen::RowVectorX< T > DynVec
Dynamically sized row vector.
Definition bitrl_types.h:74
DynVec< real_t > RealVec
double precision floating point vector
Definition bitrl_types.h:84
Eigen::Matrix< T, N, M > Mat
General fixed size matrix.
Definition bitrl_types.h:59
DeviceType
Enumeration of various device types.
Definition bitrl_types.h:159
float float_t
float
Definition bitrl_types.h:28
Eigen::MatrixX< T > DynMat
Dynamically sized matrix to use around the library.
Definition bitrl_types.h:49
DynVec< float_t > FloatVec
single precision floating point vector
Definition bitrl_types.h:79
Eigen::Matrix< T, N, N > SquareMat
Square matrix with elements of type T.
Definition bitrl_types.h:54
Various utilities used when working with RL problems.
Definition cuberl_types.h:16
Null placeholder.
Definition bitrl_types.h:152