Function ssoti_distribute_memory#
Defined in File semisparse/scalar/base.h
Function Documentation#
-
void *ssoti_distribute_memory(void *mem, const ndir_t *p_nnz, ord_t order, flag_t flag, semiotin_t *res)#
Function that distribute memory along the different components of an OTI number.
- Parameters:
mem – [in] Addres of the allocated memory.
p_nnz – [in] List of values corresponding to the allocation size per element.
order – [in] OTI Truncation order.
flag – [in] Memory flag. flag=1 means memory is owned by the respective sotinum, otherwise flag=0.
res – [in] Addres of the resulting OTI number that will be distributed accordingly.
void* – [out] Address after every item was distributed.