Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Linear algebra functions

Matrices and vectors: determinants, inverses, eigenvalues and eigenvectors, decompositions such as LU, Cholesky and Jordan, norms, null spaces and products.

44 functions

Described functions

  • det

    Determinant of a square matrix.

  • inverse

    Inverse of a square matrix.

  • eigenvalues

    Eigenvalues of a square matrix.

  • cross

    Cross product of two vectors in three dimensions.

  • dot

    Dot product of two vectors, or product of two matrices.

  • eigenvectors

    Eigenvectors of a square matrix, one for each eigenvalue.

  • identity_matrix

    Identity matrix of a given size.

  • norm

    Length of a vector.

  • null_space

    A basis of the null space of a matrix: the vectors v with A v = 0.

  • rank

    Rank of a matrix: the number of independent rows.

  • row_reduce

    Reduced row echelon form of a matrix.

  • transpose

    Transpose of a matrix: its rows become its columns.

  • adjugate

    Adjugate of a square matrix: the transpose of its cofactors.

  • characteristic_polynomial

    Characteristic polynomial of a square matrix in a variable.

  • cholesky_decomposition

    Cholesky decomposition of a symmetric positive definite matrix.

  • diagonal

    The diagonal of a matrix, as a list.

  • diagonal_matrix

    A matrix with the given list on its diagonal and zeros elsewhere.

  • eigensystem

    Eigenvalues and eigenvectors of a square matrix together: the values, then the vectors.

  • hilbert_matrix

    Hilbert matrix of a given size: the entry in row i and column j is 1/(i + j - 1).

  • jordan_decomposition

    Jordan decomposition of a square matrix: the matrix of generalized eigenvectors and the Jordan form.

  • jordan_form

    Jordan normal form of a square matrix.

  • kronecker_product

    Kronecker product of two matrices.

  • lower_triangularize

    A matrix with the entries above the diagonal set to zero.

  • lu_decomposition

    LU decomposition of a matrix: the lower and upper factors and the row order.

  • matrix_exp

    Exponential of a square matrix.

  • matrix_function

    A function of a square matrix.

  • matrix_log

    Logarithm of a square matrix.

  • matrix_power

    A square matrix to a whole power.

  • minors

    The matrix of minors: the determinant left when each row and column is removed.

  • normalize

    A vector scaled to length 1.

  • orthogonalize

    Orthonormal vectors spanning the same space as some vectors, by the Gram-Schmidt process.

  • pseudo_inverse

    Moore-Penrose pseudo-inverse of a matrix.

  • qr_decomposition

    QR decomposition of a matrix: an orthogonal factor and an upper triangular one.

  • schur_decomposition

    Schur decomposition of a square matrix: an orthogonal factor and an upper triangular one.

  • singular_value_decomposition

    Singular value decomposition of a matrix: two orthogonal factors and the singular values.

  • singular_value_list

    The singular values of a matrix.

  • smith_decomposition

    Smith normal form of an integer matrix, with the two matrices that reach it.

  • tensor_product

    Tensor product of two lists or matrices.

  • trace

    Trace of a square matrix: the sum of its diagonal.

  • upper_triangularize

    A matrix with the entries below the diagonal set to zero.

More functions in this category

Nobody has described these yet: each is listed with its first form.

Other categories

Last updated