Structure - 7.2 English

FIR Compiler (PG149)

Document ID
PG149
Release Date
2022-10-26
Version
7.2 English

The xip_array_<type> structure is used to specify a multi-dimensional array of data with type <type>. The content is summarized in Table: xip_array_<type> .

Table 5-5: xip_array_<type>

Field Name

Type

Description

data

xip_<type>*

Pointer to array of data

data_size

size_t

Current number of elements in the data array

data_capacity

size_t

Max number of elements in the data array

dim

size_t*

Pointer to dimension array

dim_size

size_t

Current number of elements in the dimension array, dim

dim_capacity

size_t

Max number of elements in dim array

owner

unsigned int

Ownership control. A value of 0 indicates that the structure and associated memory (for the data and dim fields) is allocated and owned by the xip_array_<type>_* functions, in which case the model can automatically resize arrays as required. Any other value indicates that the memory is owned by the user, and the model must report an error if an array is of insufficient capacity.

This data structure is defined for types:

xip_real

xip_complex

xip_uint

xip_mpz

xip_mpz_complex