Array Functions - Array Ops
These functions operate on a lua table containing numeric values but no string values, string keys, or sub-tables. This type of table is called an array, or indexed array, since the elements may be accessed by their index, as in x[5]. Except for arraytoimage, these functions support only 1-dimensional arrays. The arraytoimage function also supports 2-dimensional arrays. Many of these functions also work with an argument list consisting of numbers and pixel data of a CImage object.
Also see Array Functions - Math and Array Functions - Statistics.
|
Array Functions for General Array Operations |
|
|
Returns the the linear index of multi-dimensional coordinates in a multi-dimensional array. This function is the inverse of arraycoord. |
|
|
Returns the coodinate array for an offset index. This function is the inverse of arrayindex. |
|
|
Converts a 1- or 2-dimensional array to a 1- or 2-dimensional CImage object. |
|
|
Flattens the numeric values of a general table into an array. |
|
|
Lists the contents of an array. |
|
|
Reverses a 1-dimensional array with regard to the order of the array indices. |
|
|
Creates and returns a 1-dimensional array containing uniformly spaced numbers. |
|
|
Sorts the numbers of a 1-dimensional array into ascending order. |
|
|
Sorts the numbers of a 1-dimensional array into descending order. |
|
Mira Pro x64 Script User's Guide, v.8.80 Copyright Ⓒ 2025
Mirametrics, Inc. All Rights Reserved.