AIfES 2
2.0.0
|
Definition of the F32 (aif32) data-type. More...
Go to the source code of this file.
Typedefs | |
typedef float | aiscalar_f32_t |
Scalar for F32 (aif32) data-type. More... | |
Functions | |
void | aimath_f32_print_aitensor (const aitensor_t *tensor) |
Printing a F32 tensor to console. More... | |
void | aimath_f32_print_aiscalar (const void *scalar) |
Printing a F32 scalar to console. More... | |
Variables | |
const aimath_dtype_t * | aif32 |
The F32 data-type indicator. More... | |
Definition of the F32 (aif32) data-type.
The F32 (aif32) data-type stores data as 32 bit single precision floating point values. It does not require any additional parameter to define the values.
Example: Create a F32 tensor
The tensor
\[ \left( \begin{array}{rrr} 0 & 1 & 2 \\ 3 & 4 & 5 \end{array}\right) \]
can be created with In C:
In C, C++ and on Arduino:
Example: Create a F32 scalar
Either create it as a normal float value
or with the alias
Example: Print a F32 tensor to the console
Example: Print a F32 scalar to the console
typedef float aiscalar_f32_t |
Scalar for F32 (aif32) data-type.
This is only an alias for a float value for consistency.
You can create a F32 scalar either as a normal float value
or with the alias
You can print the scalar to the console with
or by using
void aimath_f32_print_aiscalar | ( | const void * | scalar | ) |
Printing a F32 scalar to console.
For users the function
is prefered.
*scalar | The scalar (type: float) to print. |
void aimath_f32_print_aitensor | ( | const aitensor_t * | tensor | ) |
Printing a F32 tensor to console.
For users the function
is prefered.
*tensor | The tensor to print. |
|
extern |
The F32 data-type indicator.
Use this variable to configure some element with the F32 data-type,