AIfES 2  2.0.0
aimath_basic.h
Go to the documentation of this file.
1 
27 #ifndef AIMATH_BASIC
28 #define AIMATH_BASIC
29 
30 #include "core/aifes_math.h"
31 
48 void print_aitensor(const aitensor_t *tensor);
49 
64 void print_aiscalar(const void *scalar, const aimath_dtype_t *dtype);
65 
77 
83 uint32_t aimath_tensor_elements(const aitensor_t *tensor);
84 
90 uint32_t aimath_sizeof_dtype(const aimath_dtype_t *dtype);
91 
101 uint32_t aimath_sizeof_tensor_data(const aitensor_t *tensor);
102 
108 uint32_t aimath_sizeof_tensor_params(const aitensor_t *tensor);
109 
119 uint32_t aimath_sizeof_tensor(const aitensor_t *tensor);
120 
121 //void aimath_create_tensor_2d(uint16_t shape_0, uint16_t shape_1, aimath_dtype_t dtype, void *memory_ptr);
122 
123 #endif // AIMATH_BASIC
AIfES 2 math interface.
void aimath_transpose_vector(aitensor_t *vector)
Transposes a vector.
uint32_t aimath_sizeof_tensor(const aitensor_t *tensor)
Returns size of tensor in bytes.
void print_aiscalar(const void *scalar, const aimath_dtype_t *dtype)
Printing a scalar to console.
void print_aitensor(const aitensor_t *tensor)
Printing a tensor to console.
uint32_t aimath_sizeof_dtype(const aimath_dtype_t *dtype)
Returns the size of one value in the given data type in bytes.
uint32_t aimath_sizeof_tensor_data(const aitensor_t *tensor)
Returns size of the data array of the tensor in bytes.
uint32_t aimath_tensor_elements(const aitensor_t *tensor)
Calculates the number of elements in a tensor.
uint32_t aimath_sizeof_tensor_params(const aitensor_t *tensor)
Returns size of the aitensor.tensor_params for the data type of the tensor.
Indicator for the used datatype.
Definition: aifes_math.h:53
A tensor in AIfES.
Definition: aifes_math.h:98