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