pinv
result = pinv(A, tol=)
Input: A, tol · Output: result
What it is
Moore-Penrose pseudo-inverse (SVD-based) of A, an r×c Mat or CMat. tol is an optional scalar relative tolerance for treating a singular value as zero; it defaults to f64::EPSILON * max(rows, cols) (real input) — the same tolerance rank reports.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = pinv(A, tol=) | A Mat or CMatMoore-Penrose pseudo-inverse (SVD-based) of A, an r×c Mat or CMat.tol scalartol is an optional scalar relative tolerance for treating a singular value as zero. | result Mat or CMat | Returns a c×r Mat/CMat. |
Examples
From the documentation, and run by the build -- the output and the figure below are what the engine actually produced. Simplest first.
tall = [1, 2; 3, 4; 5, 6]
P = pinv(tall)
from numerics-dsp