Return to index

array functions

number = argmax(array)

top

Find index of maximum value in array. Supports multi-dimensional arrays via flattening.


number = argmin(array)

top

Find index of minimum value in array. Supports multi-dimensional arrays via flattening.


array = concatenate(arrays...,axis?)

top

Join arrays along an existing axis. Axis 0 (default) concatenates vertically, axis 1 horizontally.


number = det(matrix)

top

Calculate determinant of a square matrix.


big.Float = det_big(matrix)

top

Calculate determinant of a square matrix with arbitrary precision using big.Float.


array = find(array,condition/value)

top

Find indices of non-zero elements, elements matching value, or elements matching condition string.


array = flatten(array)

top

Flatten multi-dimensional array to 1-D array.


array = identity(size)

top

Create identity matrix of specified size.


array = inverse(matrix)

top

Calculate inverse of a square matrix.


array = inverse_big(matrix)

top

Calculate inverse of a square matrix with arbitrary precision using big.Float.


number = mean(array)

top

Calculate the arithmetic mean of values in an array. Supports multi-dimensional arrays.


number = median(array)

top

Calculate the median value in an array. Supports multi-dimensional arrays.


array = ones(dims...)

top

Create array filled with ones. Dimensions can be provided as separate arguments or as a single array.


number = rank(matrix)

top

Calculate rank of a matrix.


array = reshape(array,new_dims)

top

Reshape array to new dimensions. Total elements must remain constant.


array = squeeze(array)

top

Remove singleton dimensions from array.


array = stack(arrays...,axis?)

top

Stack arrays along a new axis. Axis 0 (default) stacks vertically, axis 1 horizontally.


number|array = std(array,axis?,keepdims?)

top

Calculate the standard deviation of values. axis: -1/None=flatten, 0=first dim, 1=second dim. keepdims: preserve dimensions.


number = trace(matrix)

top

Calculate trace (sum of diagonal elements) of a square matrix.


number|array = variance(array,axis?,keepdims?)

top

Calculate the variance of values. axis: -1/None=flatten, 0=first dim, 1=second dim. keepdims: preserve dimensions.


array = where(input_array,condition[,true_values][,false_values])

top

Select elements from array based on condition. Supports chaining and scalar broadcasting.


array = zeros(dims...)

top

Create array filled with zeros. Dimensions can be provided as separate arguments or as a single array.