This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

LinearSolve

LinearSolve[m, b]
finds an x which solves the matrix equation m.xb.
LinearSolve[m]
generates a LinearSolveFunction[...] which can be applied repeatedly to different b.
  • The argument b can be either a vector or a matrix.  »
  • The matrix m can be square or rectangular.  »
  • For underdetermined systems, LinearSolve will return one of the possible solutions; Solve will return a general solution.  »
  • LinearSolve[m, b, ZeroTest->test] evaluates test[m[[i, j]]] to determine whether matrix elements are zero. The default setting is ZeroTest->Automatic.
  • A Method option can also be given. Settings for exact and symbolic matrices include "CofactorExpansion", "DivisionFreeRowReduction" and "OneStepRowReduction". Settings for approximate numerical matrices include "Cholesky", and for sparse arrays "Multifrontal" and "Krylov". The default setting of Automatic switches among these methods depending on the matrix given.
New in 1 | Last modified in 5