linalg opmatrix → measurementimport fullseye as fs; fs.ledger.mat_cond(a) (実装を直接呼ぶなら import mathops; mathops.mat_cond(a)、台帳から引くなら opsmath.get("mat_cond"))Spectral (2-norm) condition number s_max / s_min — the numerical
canary of the whole linalg family.
cond == 1 for an orthogonal/orthonormal matrix (the best possible);
inf (returned, not raised — the question “how conditioned is it?” has
that honest answer) for an exactly singular one. A solve against A loses
roughly log10(cond(A)) significant digits (Golub & Van Loan §2.6):
cond ~ 1e3 — comfortable, ~13 digits survive.cond ~ 1e8 — half the digits are gone; residuals may still look
small while parameters are off.cond > 1e12 — do not trust :func:mat_solve here: at best ~3
digits remain. Rescale/centre the problem, or switch to
:func:mat_lstsq / :func:mat_pinv with an honest rcond.Defined for any rectangular (m, n) matrix (via its singular values).
HALCON: no direct operator (combine norm_matrix of A and of its
inverse).
mathops の全 op は入力を検証してから計算する(黙って通さない):
ValueError — float64 への強制変換は虚部を黙って捨てる(numpy は ComplexWarning だけ出して「もっともらしく間違った」実数を返す)。.real/.imag/abs() を明示するか、複素対応の complexops を使う。ValueError — マスクを剥がして下の生値を使う暗黙変換を拒否。埋める/落とすを明示する。ValueError(件数を明示して拒否 — 結果全体に伝播するため)。ValueError。reshape を明示する)。stat_histogram の bins は mathops.MAX_ELEMENTS(2^26 ≈ 6700 万要素)超で ValueError。py -3.11 examples/math_metrology.pymeasurement を入力に取れる)—
linalg)mat_solve · mat_lstsq · mat_svd · mat_eigh · mat_pinv
Provenance: mathops.py — MATH operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.