fullseye

mat_pinv — MATH linalg op

使い方

Moore-Penrose pseudo-inverse via SVD, with the cutoff explicit.

Singular values below rcond * s_max are treated as zero — that cutoff is the regularisation, so it is a named, documented parameter here (default 1e-12) rather than a hidden library default: raising it discards noisy directions (stabler, more biased), lowering it keeps them (exact for well-conditioned A, explosive near rank deficiency).

Works for any (m, n): pinv(A) @ b is the least-squares solution for m > n and the minimum-norm solution for m < n.

HALCON: no direct operator — HALCON reaches the same result through svd_matrix + reciprocal singular values.

ファミリ共通の入力契約(fail-closed)

mathops の全 op は入力を検証してから計算する(黙って通さない):

詳しい使い方ガイド

背景知識ガイド(この op の手前にある物理・規約)

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(matrix を入力に取れる)

mat_solve · mat_lstsq · mat_svd · mat_eigh · mat_cond · stat_covariance · stat_correlation

同カテゴリ(linalg)

mat_solve · mat_lstsq · mat_svd · mat_eigh · mat_cond


Provenance: mathops.py — MATH operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.