Arrays

Array Creation Routines

ASARR

Creates an associative array containing specified variables and expressions.

BINDGEN Function

Returns a byte array with the specified dimensions, setting the contents of the result to increasing numbers starting at 0.

BYTARR

Returns a byte vector or array.

CINDGEN

Returns a complex single-precision floating-point array.

COMPLEXARR

Returns a complex single-precision floating-point vector or array.

DBLARR

Returns a double-precision floating-point vector or array.

DCINDGEN

Returns a double-precision floating-point complex array.

DCOMPLEXARR

Returns a double-precision floating-point complex vector or array.

DIAG

Makes a diagonal array or extracts the diagonal of an array.

DINDGEN

Returns a double-precision floating-point array with the specified dimensions.

FINDGEN

Returns a single-precision floating-point array with the specified dimensions.

FLTARR

Returns a single-precision floating-point vector or array.

I32ARR

Returns a 32-bit integer vector or array.

I32INDGEN

Returns a 32-bit integer array with the specified dimensions.

INDGEN

Returns an integer array with the specified dimensions.

INTARR

Returns an integer vector or array.

LINDGEN

Returns a longword integer array with the specified dimensions.

LINSPACE

Generates an array of evenly spaced numbers.

LIST

Creates a list array.

LISTARR

Returns a list.

LONARR

Returns a longword integer vector or array.

MAKE_ARRAY

Returns an array of specified type, dimensions, and initialization. It provides the ability to create an array dynamically whose characteristics are not known until run time.

REPLICATE

Forms an array with the given dimensions, filled with the specified scalar value.

SINDGEN

Returns a string array with the specified dimensions.

STRARR

Returns a string array.

Array Manipulation Routines

ADJOINT

Computes the conjugate transpose of a matrix.

AFFINE

Applies an affine transformation to an array.

ARRAYTRACE

Computes the trace of a matrix or a tensor contraction on a multidimensional array.

ASKEYS

Obtains the key names for a given associative array.

AVG

Standard Library function that returns the average value of an array. Optionally, it can return the average value of one dimension of an array.

BILINEAR

Standard Library function that creates an array containing values calculated using a bilinear interpolation to solve for requested points interior to an input grid specified by the input array.

BLOB

Isolates a homogeneous region in an array.

BLOBCOUNT

Counts homogeneous regions in an array.

BOUNDARY

Computes the boundary of a region in an array.

CORRELATE

Standard Library function that calculates a simple correlation coefficient for two arrays.

CPROD

Returns the Cartesian product of some arrays.

CUMSUM

Computes the cumulative sum over an array or over one dimension of an array.

CURVATURES

Standard Library function that computes curvatures on a parametrically defined surface.

DICM_TAG_INFO

Retrieves the Digital Imaging and Communications in Medicine (DICOM) tags, which are described in the function's input file, from an image associative array.

DICM_TAGS

Adds, deletes, modifies, or updates the Digital Imaging and Communications in Medicine (DICOM) tags in an image associative array to match the image associative array's keys.

DETERM

Standard Library function that calculates the determinant of a square, two-dimensional input variable.

DERIVN

Differentiates a function represented by an array.

EUCLIDEAN

Standard Library function that transforms the Euclidean metric for a Jacobian j = Jacobian(f)

EXPAND

Expands an array into higher dimensions.

EXTREMA

Finds the local extrema in an array.

GEOMEAN

Calculates the geometric mean of an array.

HISTN

Computes an n dimensional histogram.

HISTOGRAM

Returns the density function of an array.

INDEX_AND

Computes the logical AND for two vectors of positive integers.

INDEX_CONV

Converts one-dimensional indices to n-dimensional indices, or n-dimensional indices to 1D indices.

INDEX_OR

Computes the logical OR for two vectors of positive integers.

INTRP

Interpolates an array along one of its dimensions.

ISASKEY

Matches a key name in a given associative array.

JACOBIAN

Standard Library function that computes the Jacobian of a function represented by n m-dimensional arrays.

MAX

Returns the value of the largest element in an input array.

MEDIAN

Finds the median value of an array, or applies a one- or two- dimensional median filter of a specified width to an array.

MIN

Returns the value of the smallest element in array.

MOMENT

Computes moments of an array.

NEIGHBORS

Finds the neighbors of specified array elements.

NORMALS

Standard Library function that computes unit normals on a parametrically defined surface.

PADIT

Pads an array with variable thickness.

PRODUCT

Returns the product of all elements in an array.

REBIN Function

Returns a vector or array resized to the given dimensions.

REFORM

Reformats an array without changing its values numerically.

REPLV Function

Replicates a vector into an array.

RESAMP Function

Resamples an array to new dimensions.

REVERSE

Standard Library function that reverses a vector or array for a given dimension.

ROTATE

Returns a rotated and/or transposed copy of the input array.

SAME

Tests if two variables are the same.

SHIF Function

Shifts an array along one of its dimensions.

SHIFT

Shifts the elements of a vector or array along any dimension by any number of elements. SIGMA Function

SIGMA

Standard Library function that calculates the standard deviation value of an array.

SLICE

Subsets an array along one of its dimensions.

SMOOTH

Smooths an array with a boxcar average of a specified width.

SORT

Sorts the contents of an array.

SORTDIM Function

Sorts one dimension of a multidimensional array.

SORTN Function

Sorts a matrix by its rows.

SPMVM Function

Multiplies a sparse matrix and a dense vector.

STDEV Function

Standard Library function that computes the standard deviation and (optionally) the mean of the input array.

TENSOR

Compute the generalized tensor product of two arrays.

TOTAL

Sums the elements of an input array.

TRANSPOSE

Transposes the input array.

UNIQUE

Returns a vector (one-dimensional array) containing the unique elements from another vector variable.

UNIQN

Finds the unique rows in a matrix.

vecOverArr

Applies a binary operator to a vector and each vector along one dimension of an array.

WHERE (array_expr [, count ] )

Returns the index of the first 1 in array of 0’s and 1’s.

WHEREFIRST

Returns a longword vector containing the one-dimensional subscripts of the nonzero elements of the input array.

WHEREIN ( a, b [,c] )

Find the indices into an array where the values occur in a second array; keywords yield intersection, union, and complement.

WHEREINVEC (b,c)

Finds the vectors in a matrix that occur in a second matrix.

WHEREMONO (v, n, s)

Finds monotone sequences in a one-dimensional array.

Interpolation Routines

AFFINE

Applies an affine transformation to an array

BILINEAR

Standard Library function that creates an array containing values calculated using a bilinear interpolation to solve for requested points interior to an input grid specified by the input array.

GRIDN

Grids n dimensional data.

INTERPOLATE

Interpolates scattered data at scattered locations.

INTERPOL

Performs a linear interpolation of a vector using either a regular or irregular grid.

INTRP

Interpolates an array along one of its dimensions.

REBIN

Returns a vector or array resized to the given dimensions.

RESAMP

Resamples an array to new dimensions

SPLINE

Standard Library function that performs a cubic spline interpolation.