Arrays#
-
type vx_array#
Arrays are reference-counted handles to owned memory buffers that hold scalars. These buffers can be held in a number of physical encodings to perform lightweight compression that exploits the particular data distribution of the array’s values.
Every data type recognized by Vortex also has a canonical physical encoding format, which arrays can be canonicalized into for ease of access in compute functions.
As an implementation detail, vx_array Arc’ed inside, so cloning an array is a cheap operation.
Unless stated explicitly, all operations with vx_array don’t take ownership of it, and thus it must be freed by the caller.
-
const vx_array *vx_array_clone(const vx_array *ptr)#
Clone a borrowed
vx_array, returning an ownedvx_array.Must be released with
vx_array_free().