Vector of Arrays#

typedef struct mlx_vector_array_ *mlx_vector_array#

A vector of arrays.

mlx_vector_array mlx_vector_array_new()#

Returns a new empty vector of arrays.

mlx_vector_array mlx_vector_array_from_arrays(mlx_array *arrs, size_t num_arrs)#

Returns a new vector of arrays, from specified arrays.

The reference count of the given arrays will be increased.

mlx_vector_array mlx_vector_array_from_array(const mlx_array arr)#

Returns a new vector of array, containing a single specified array.

The reference count of the given array will be increased.

void mlx_vector_array_add(mlx_vector_array vec, const mlx_array arr)#

Add an array to the vector of arrays.

The reference count of the given array will be increased.

void mlx_vector_array_add_arrays(mlx_vector_array vec, const mlx_array *arrs, size_t num_arrs)#

Add several arrays to the vector of arrays.

The reference count of the given arrays will be increased.

mlx_array mlx_vector_array_get(mlx_vector_array vec, size_t index)#

Get the array at index in the vector of arrays.

size_t mlx_vector_array_size(mlx_vector_array vec)#

Size of the vector of arrays.