| AIfES 2 2.0.0

aimath_basic.h
Go to the documentation of this file.
1
24 #ifndef AIMATH_BASIC
25 #define AIMATH_BASIC
26
27 #include "core/aifes_math.h"
28
45 void print_aitensor(const aitensor_t *tensor);
46
61 void print_aiscalar(const void *scalar, const aimath_dtype_t *dtype);
62
73 void aimath_transpose_vector(aitensor_t *vector);
74
80 uint32_t aimath_tensor_elements(const aitensor_t *tensor);
81
87 uint32_t aimath_sizeof_dtype(const aimath_dtype_t *dtype);
88
98 uint32_t aimath_sizeof_tensor_data(const aitensor_t *tensor);
99
105 uint32_t aimath_sizeof_tensor_params(const aitensor_t *tensor);
106
116 uint32_t aimath_sizeof_tensor(const aitensor_t *tensor);
117
118 //void aimath_create_tensor_2d(uint16_t shape_0, uint16_t shape_1, aimath_dtype_t dtype, void *memory_ptr);
119
120 #endif // AIMATH_BASIC
aifes_math.h
AIfES 2 math interface.
aimath_transpose_vector
void aimath_transpose_vector(aitensor_t *vector)
Transposes a vector.
aimath_sizeof_tensor
uint32_t aimath_sizeof_tensor(const aitensor_t *tensor)
Returns size of tensor in bytes.
print_aiscalar
void print_aiscalar(const void *scalar, const aimath_dtype_t *dtype)
Printing a scalar to console.
print_aitensor
void print_aitensor(const aitensor_t *tensor)
Printing a tensor to console.
aimath_sizeof_dtype
uint32_t aimath_sizeof_dtype(const aimath_dtype_t *dtype)
Returns the size of one value in the given data type in bytes.
aimath_sizeof_tensor_data
uint32_t aimath_sizeof_tensor_data(const aitensor_t *tensor)
Returns size of the data array of the tensor in bytes.
aimath_tensor_elements
uint32_t aimath_tensor_elements(const aitensor_t *tensor)
Calculates the number of elements in a tensor.
aimath_sizeof_tensor_params
uint32_t aimath_sizeof_tensor_params(const aitensor_t *tensor)
Returns size of the aitensor.tensor_params for the data type of the tensor.
aimath_dtype
Indicator for the used datatype.
Definition: aifes_math.h:44
aitensor
A tensor in AIfES.
Definition: aifes_math.h:89