AIfES 2  2.0.0
aimath_f32.h
Go to the documentation of this file.
1 
72 #ifndef AIMATH_F32
73 #define AIMATH_F32
74 
75 #include "core/aifes_math.h"
77 
83 #define AITENSOR_1D_F32(shape, data) {aif32, 1, (uint16_t *) shape, 0, (float *) data}
84 
90 #define AITENSOR_2D_F32(shape, data) {aif32, 2, (uint16_t *) shape, 0, (float *) data}
91 
97 #define AITENSOR_4D_F32(shape, data) {aif32, 4, (uint16_t *) shape, 0, (float *) data}
98 
120 typedef float aiscalar_f32_t;
121 
133 
144 void aimath_f32_print_aiscalar(const void *scalar);
145 
150 extern const aimath_dtype_t *aif32;
151 
152 #endif // AIMATH_F32
AIfES 2 math interface.
Basic data-type independent math operations.
const aimath_dtype_t * aif32
The F32 data-type indicator.
void aimath_f32_print_aitensor(const aitensor_t *tensor)
Printing a F32 tensor to console.
void aimath_f32_print_aiscalar(const void *scalar)
Printing a F32 scalar to console.
float aiscalar_f32_t
Scalar for F32 (aif32) data-type.
Definition: aimath_f32.h:120
Indicator for the used datatype.
Definition: aifes_math.h:44
A tensor in AIfES.
Definition: aifes_math.h:89