Fork me on GitHub

src/arraymancer/linear_algebra/linear_systems

Search:
Group by:
  Source Edit

Types

MatrixKind = enum
  mkGeneral, mkGenBand, mkGenTriDiag, mkSymmetric, mkPosDef, mkPosDefBand,
  mkPosDefTriDiag
  Source Edit

Procs

proc solve[T: SomeFloat](a, b: Tensor[T]; kind: MatrixKind = mkGeneral): Tensor[
    T]

Compute the solution X to the system of linear equations AX = B.

Multiple right-hand sides can be solved simultaneously.

Input:

  • a, a MxM matrix
  • b, a vector of length M, or a MxN matrix. In the latter case, each column is interpreted as a separate RHS to solve for.

Output:

  • Tensor with same shape as b
  Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood