Arrays

type vx_array

Base type for all Vortex arrays.

All built-in Vortex array types can be safely cast to this type to pass into functions that expect a generic array type. e.g.

`cpp auto primitive_array = vx_array_primitive_new(...); vx_array_len((*vx_array) primitive_array)); `

const vx_array *vx_array_clone(const vx_array *ptr)

Clone a borrowed vx_array, returning an owned vx_array.

Must be released with vx_array_free().

void vx_array_free(const vx_array *ptr)

Free an owned vx_array object.

Properties

size_t vx_array_len(const vx_array *array)

Get the length of the array.

const vx_dtype *vx_array_dtype(const vx_array *array)

Get the vx_dtype of the array.

The returned pointer is valid as long as the array is valid.