NextPrevUpTopContentsIndex

foreign-array-dimensions

Function
Summary

Returns a list containing the dimensions of an array.

Package

fli

Signature

foreign-array-dimensions array => dimensions

Arguments

array

An FLI array or a pointer to an FLI array.

Values

dimensions

A list containing the dimensions of array .

Description

The function foreign-array-dimensions takes an FLI array or a pointer to an FLI array as its argument and returns a list containing the dimensions of the array.

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


LispWorks Foreign Language Interface User Guide and Reference Manual - 27 Mar 2005

NextPrevUpTopContentsIndex