| 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"
76 #include "basic/base/aimath/aimath_basic.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
132 void aimath_f32_print_aitensor(const aitensor_t *tensor);
133
144 void aimath_f32_print_aiscalar(const void *scalar);
145
150 extern const aimath_dtype_t *aif32;
151
152 #endif // AIMATH_F32
aifes_math.h
AIfES 2 math interface.
aimath_basic.h
Basic data-type independent math operations.
aif32
const aimath_dtype_t * aif32
The F32 data-type indicator.
aimath_f32_print_aitensor
void aimath_f32_print_aitensor(const aitensor_t *tensor)
Printing a F32 tensor to console.
aimath_f32_print_aiscalar
void aimath_f32_print_aiscalar(const void *scalar)
Printing a F32 scalar to console.
aiscalar_f32_t
float aiscalar_f32_t
Scalar for F32 (aif32) data-type.
Definition: aimath_f32.h:120
aimath_dtype
Indicator for the used datatype.
Definition: aifes_math.h:44
aitensor
A tensor in AIfES.
Definition: aifes_math.h:89