fullseye

mat_svd — MATH linalg op

使い方

Singular value decomposition A = U @ diag(s) @ Vt (LAPACK gesdd).

Returns (U, s, Vt) with s descending and non-negative. With the default full_matrices=False the thin SVD is returned (U is (m, r), Vt is (r, n), r = min(m, n)) — enough to reconstruct A exactly and what every rank/PCA use wants; pass True for the full orthogonal bases.

Sign trap (honest): each singular-vector pair (u_i, v_i) is defined only up to a simultaneous sign flip, and vectors within a degenerate (equal-s) block only up to rotation. Assert on s, on U diag(s) Vt, or on projectors — never on raw U/Vt entries.

HALCON: svd_matrix.

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

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

詳しい使い方ガイド

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

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

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

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

同カテゴリ(linalg)

mat_solve · mat_lstsq · mat_eigh · mat_pinv · 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.