An array is a matrix-like data structure with an arbitrary (but fixed) dimension and arbitrary (but fixed) size. Items are accessed by a tuple of indices in constant time. Some of the functions of this module use a variable number of arguments like
The defined dimension constructing and array with arrayNew() must match the number of indices you provide to arraySetElement() and arrayElement().
|
copy an array into a new one.
References vectorClone(). |
|
deletes an array. Any future access to the array is illegal. Note that this function does not free the memory from the items contained in the array.
References vectorDelete(). |
|
returns value for dimension dim.
References vectorElement(), and vectorSize(). |
|
retrieves an array element.
References vectorElement(), and vectorSize(). |
|
creates and returns a new vector. This function constructs a new array with an arbitrary number of dimensions.
References vectorAddElement(), and vectorNew(). |
|
sets all array element to a new value
|
|
sets an array element to a new value.
References vectorElement(), and vectorSize(). |