All Manuals > Foreign Language Interface User Guide and Reference Manual > 7 Function, Macro and Variable Reference

foreign-array-dimensions Function

Summary

Returns a list containing the dimensions of an array.

Package

fli

Signature

foreign-array-dimensions array-or-type => dimensions

Arguments
array-or-type
A FLI array, a pointer to a FLI array or the name of a FLI array type.
Values
dimensions
A list containing the dimensions of array-or-type.
Description

The function foreign-array-dimensions returns a list containing the dimensions of array-or-type.

Examples

In the following example an instance of a 3 by 4 array is created, and these dimensions are returned using the foreign-array-dimensions function.

(setq array1 (fli:allocate-foreign-object
              :type '(:c-array :int 3 4)))
(fli:foreign-array-dimensions array1)
See also

foreign-aref
foreign-array-element-type
foreign-array-pointer


Foreign Language Interface User Guide and Reference Manual - 01 Dec 2021 19:34:58