Name

Array properties — Array size, fill pointer, etc

Synopsis

cl_elttype ecl_array_elttype( cl_object array);

cl_index ecl_array_rank( cl_object array);

cl_index ecl_array_dimension( cl_object array, cl_index index);

Description

These functions query various properties of the arrays. Some of them belong to the list of functions in the Common Lisp package, without any need for specialized versions. More precisely

  • ecl_array_elttype returns the array element type, with the encoding found in the enumeration cl_elttype.

  • ecl_array_rank returns the number of dimensions of the vector or array.

  • ecl_array_dimension queries the dimension of an array, where index is a non-negative integer between 0 and ecl_array_dimension(array)-1.