Next: make-foreign-array-from-pointer, Previous: make-foreign-array, Up: Functions for creation of grids
If object is not a foreign array, make and return a foreign array with the dimensions and element-type. If object is a foreign array, it is returned.
(grid:ensure-foreign-array nil '(2 2) 'double-float)
#m((.0000000000000000d0 .0000000000000000d0)
(.0000000000000000d0 .0000000000000000d0))