Fork me on GitHub

src/arraymancer/linear_algebra/algebra

Search:
Group by:
  Source Edit

Procs

proc pinv[T: Complex32 | Complex64](A: Tensor[T]; rcond = 1e-15): Tensor[T]

Compute the (Moore-Penrose) pseudo-inverse of a matrix.

Calculate the generalized inverse of a matrix using its singular-value decomposition (SVD) and including all large singular values.

Input:

  • A: the rank-2 tensor to invert
  • rcond: Cutoff ratio for small singular values. Singular values less than or equal to rcond * largest_singular_value are set to zero.
  Source Edit
proc pinv[T: SomeFloat](A: Tensor[T]; rcond = 1e-15): Tensor[T]

Compute the (Moore-Penrose) pseudo-inverse of a matrix.

Calculate the generalized inverse of a matrix using its singular-value decomposition (SVD) and including all large singular values.

Input:

  • A: the rank-2 tensor to invert
  • rcond: Cutoff ratio for small singular values. Singular values less than or equal to rcond * largest_singular_value are set to zero.
  Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood