Skip to content

Package: array

Array-specific nodes.

These nodes operate on raw arrays, and are only needed in special circumstances, for instance when building data structures from scratch or to implement mathematical algorithms from scratch. Arrays occur as array fields in Axis objects, (e.g., time.times, frequency.frequencies, etc), and as the data field in Block objects. The nodes in this module are not needed for most data analysis tasks, but should cover most linear algebra needs. See also the tensor math and elementwise math categories for additional operations that can be applied (among others) to plain arrays.

Nodes in this package:

  • Array Nonzeros
    Get the indices or optionally n-dimensional index coordinates of the non-zero entries in an array.

  • Reshape (Array)
    Change the shape of an array without changing the number of elements.

  • Create Array
    Create an array from the given input values.

  • Diagonal Matrix (Array)
    Create a diagonal matrix from a vector, or stack of vectors.

  • Geometric Progression (Array)
    Create an array that contains a sequence of numbers that follow a geometric progression, i.e

  • Identity Matrix (Array)
    Create a two-dimensional array that is an identity matrix, optionally with a shifted diagonal.

  • Integer Progression (Array)
    Create a raw array that contains an arithmetic progression of numbers with integer step size.

  • Linear Progression (Array)
    Create a raw array that contains an arithmetic progression of numbers with real-valued step size and starts/ends.

  • Block Diagonal (Matrix)
    Create a block-diagonal matrix from a collection of input matrices.

  • Cholesky Decomposition (Matrix)
    Calculate the Cholesky decomposition of a complex Hermitian or real symmetrix positive- definite matrix, or a stack of matrices (where the last two dimensions are the matrix dimensions).

  • Determinant (Matrix)
    Calculate the determinant of the given square matrix, or stack of matrices (where the last two dimensions are the matrix dimensions).

  • Diagonal (Matrix)
    Obtain the diagonal vector of a matrix or stack of matrices (where the last two dimensions are the matrix dimensions).

  • Eigendecomposition (Hermitian Matrix)
    Calculate an eigenvalue decomposition of a complex Hermitian or real symmetric positive-definite matrix or stack thereof (where the last two dimensions are the matrix dimensions).

  • Matrix Exponential
    Calculate the exponential of a matrix or stack thereof (where the last two dimensions are the matrix dimensions).

  • Hessenberg Form (Matrix)
    Calculate the Hessenberg form of a matrix or stack of matrices (where the last two dimensions are the matrix dimensions).

  • Inverse (Matrix)
    Calculate the multiplicative inverse of the given matrix, or stack of matrices (where the last two dimensions are the matrix dimensions).

  • Kronecker Product (Matrix)
    Take the Kronecker product of two matrices or stacks of matrices (where the last two dimensions are the matrix dimensions).

  • LU Decomposition (Matrix)
    Calculate the LU decomposition of a matrix or stack of matrices (where the last two dimensions are the matrix dimensions).

  • Least-Squares Solve (Matrix)
    Compute the least-squares solution to a linear matrix equation A * X = B or stacks thereof (where the last two dimensions are the matrix dimensions).

  • Multiply (Matrix)
    Multiply two matrices or stacks of matrices (where the last two dimensions are the matrix dimensions).

  • Pseudoinverse (Matrix)
    Calculate the Moore-Penrose pseudo-inverse of a matrix or stack of matrices (where the last two dimensions are the matrix dimensions).

  • QR Decomposition (Matrix)
    Calculate the QR decompoisition of a matrix or stack thereof (where the last two dimensions are the matrix dimensions).

  • Rank (Matrix)
    Calculate the rank of a given matrix or stack of matrices (where the last two dimensions are the matrix dimensions).

  • Singular Value Decomposition (Matrix)
    Calculate the singular value decomposition (SVD) of a matrix or stack of matrices (where the last two dimensions are the matrix dimensions).

  • Schur Decomposition (Matrix)
    Calculate the Schur decomposition of a matrix or stack of matrices (where the last two dimensions are the matrix dimensions).

  • Linear Solve (Matrix)
    Solve a linear matrix equation A * X = B or system of linear equations, or stacks thereof (where the last two dimensions are the matrix dimensions).

  • Matrix Square Root (Matrix)
    Calculate the square root of a matrix or stack thereof (where the last two dimensions are the matrix dimensions).

  • Trace (Matrix)
    Calculate the trace (sum of diagonal elements) of a matrix or stack of matrices (where the last two dimensions are the matrix dimensions).

  • Transpose (Matrix)
    Transpose the given matrix or stack of matrices (where the last two dimensions are the matrix dimensions).

  • One-Filled Array
    Create a raw numeric array filled with ones, optionally matching a template array in shape and optionally data type.

  • Zero-Filled Array
    Create a raw numeric array filled with zeros, optionally matching a template array in shape and optionally data type.