ARRAY namespace

Symbols grouped by the ARRAY namespace.

Symbols in this namespace: 16

SymbolKindCategoryDescription
ARRAY.COLUMNFunctionArray functionsExtracts one column from a 2D array and returns a 1D array.
ARRAY.DIMSFunctionArray functionsReturns the number of dimensions.
ARRAY.DIMSIZEFunctionArray functionsReturns the size of one zero-based dimension.
ARRAY.EQUALFunctionArray functionsReturns TRUE when two arrays have the same shape and equal values, with optional numeric tolerance.
ARRAY.FROM_TEXTFunctionArray functionsReads an array from ARRAY.TO_TEXT output or plain delimited rows.
ARRAY.GETFunctionArray functionsReads an array element. For vector-like 2D arrays n x 1 or 1 x n, one-index access is accepted: v[0] or ARRAY.GET(v,0).
ARRAY.IS_ARRAYFunctionArray functionsReturns TRUE when the value is a script array.
ARRAY.MAXFunctionArray functionsReturns the maximum numeric element.
ARRAY.MEANFunctionArray functionsReturns the mean of all numeric elements in the array.
ARRAY.MINFunctionArray functionsReturns the minimum numeric element.
ARRAY.ROWFunctionArray functionsExtracts one row from a 2D array and returns a 1D array.
ARRAY.SETFunctionArray functionsWrites an array element and returns the same array object. Vector-like 2D arrays n x 1 or 1 x n also accept one-index writes.
ARRAY.SIZEFunctionArray functionsReturns the total number of elements.
ARRAY.STDDEVFunctionArray functionsReturns the population standard deviation of all numeric elements.
ARRAY.SUMFunctionArray functionsReturns the sum of all numeric elements in the array.
ARRAY.TO_TEXTFunctionArray functionsSerializes a 1D/2D array to a compact CVB_ARRAY text block.

ARRAY.COLUMN

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.COLUMN(array2d, column)

Extracts one column from a 2D array and returns a 1D array.

Minimal example

x = ARRAY.COLUMN(points, 0)

ARRAY.DIMS

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.DIMS(array)

Returns the number of dimensions.

Minimal example

value = ARRAY.DIMS(array)

ARRAY.DIMSIZE

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.DIMSIZE(array, dimension)

Returns the size of one zero-based dimension.

Minimal example

value = ARRAY.DIMSIZE(array, dimension)

ARRAY.EQUAL

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.EQUAL(a, b [, eps])

Returns TRUE when two arrays have the same shape and equal values, with optional numeric tolerance.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
epsOptional parameter. If omitted, the command uses its internal default.

Minimal example

value = ARRAY.EQUAL(a, b [, eps])

ARRAY.FROM_TEXT

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.FROM_TEXT(text [, delimiter [, numeric]])

Reads an array from ARRAY.TO_TEXT output or plain delimited rows.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
delimiterCSV delimiter override; omit it for auto-detection where supported.
numericWhen true, forces numeric conversion of CSV values.

Minimal example

b = ARRAY.FROM_TEXT(ARRAY.TO_TEXT(a))

ARRAY.GET

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.GET(array, indexOrRow [, column]) or array[indexOrRow[,column]]

Reads an array element. For vector-like 2D arrays n x 1 or 1 x n, one-index access is accepted: v[0] or ARRAY.GET(v,0).

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
columnOptional parameter. If omitted, the command uses its internal default.
indexOrRowOptional parameter. If omitted, the command uses its internal default.

Minimal example

value = ARRAY.GET(array, indexOrRow [, column]) or array[indexOrRow[,column]]

ARRAY.IS_ARRAY

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.IS_ARRAY(value)

Returns TRUE when the value is a script array.

Minimal example

value = ARRAY.IS_ARRAY(value)

ARRAY.MAX

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.MAX(array)

Returns the maximum numeric element.

Minimal example

value = ARRAY.MAX(array)

ARRAY.MEAN

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.MEAN(array)

Returns the mean of all numeric elements in the array.

Minimal example

value = ARRAY.MEAN(array)

ARRAY.MIN

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.MIN(array)

Returns the minimum numeric element.

Minimal example

value = ARRAY.MIN(array)

ARRAY.ROW

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.ROW(array2d, row)

Extracts one row from a 2D array and returns a 1D array.

Minimal example

value = ARRAY.ROW(array2d, row)

ARRAY.SET

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.SET(array, index, value) or ARRAY.SET(array, row, column, value)

Writes an array element and returns the same array object. Vector-like 2D arrays n x 1 or 1 x n also accept one-index writes.

Minimal example

value = ARRAY.SET(array, index, value) or ARRAY.SET(array, row, column, value)

ARRAY.SIZE

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.SIZE(array)

Returns the total number of elements.

Minimal example

value = ARRAY.SIZE(array)

ARRAY.STDDEV

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.STDDEV(array)

Returns the population standard deviation of all numeric elements.

Minimal example

value = ARRAY.STDDEV(array)

ARRAY.SUM

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.SUM(array)

Returns the sum of all numeric elements in the array.

Minimal example

value = ARRAY.SUM(array)

ARRAY.TO_TEXT

FUNCTIONARRAYBATCH-FRIENDLY
Kind: Function   Category: Array functions   Namespace: ARRAY

ARRAY.TO_TEXT(array [, delimiter])

Serializes a 1D/2D array to a compact CVB_ARRAY text block.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
delimiterCSV delimiter override; omit it for auto-detection where supported.

Minimal example

value = ARRAY.TO_TEXT(array [, delimiter])