1 Do LOADFILE(ARRAY,FASL,DSK,SHARE);
3 This file provides various utility functions for handling arrays.
6 Returns a list of the elements of a array. The order
7 is row-major for declared arrays. For hashed arrays the order of
8 elements is the same as given by ARRAYINFO(<array>). You will
9 get garbage if any of the elements have not been defined yet.
11 FILLARRAY(<array>,<list-or-array>);
12 Fills <array> from <list-or-array>. If <array> is a
13 floating-point (integer) array then <list-or-array> should be either a
14 list of floating-point (integer) numbers or another floating-point
15 (integer) array. If the dimensions of the arrays are different <array>
16 is filled in row-major order. If there are not enough elements in
17 <list-or-array> the last element is used to fill out the rest of
18 <array>. If there are too many the remaining ones are thrown away.
19 FILLARRAY returns its first argument.
21 REARRAY(<array>,<dim1>, ... ,<dimk>);
22 Can be used to change the size or dimensions of an array. The
23 new array will be filled with the elements of the old one in row-major
24 order. If the old array was too small, FALSE, 0.0 or 0 will be used to
25 fill the remaining elements, depending on the type of the array. The
26 type of the array cannot be changed.