fullseye

mat_solve — MATH linalg op

使い方

Solve the square linear system A x = b (LAPACK gesv, LU with partial pivoting).

a must be square (n, n); b is (n,) or (n, k) (multiple right-hand sides). An exactly singular A raises ValueError.

Do not trust the answer of an ill-conditioned system: a solve loses about log10(cond(A)) significant digits, so at cond > 1e12 maybe 3 of float64’s ~16 digits survive — and this function cannot tell you that, because a near-singular system still “solves”. Check :func:mat_cond first; for a rank-deficient or noisy system use :func:mat_lstsq / :func:mat_pinv with an explicit rcond instead.

HALCON: solve_matrix. Returns float64, same trailing shape as b.

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

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

詳しい使い方ガイド

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

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

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

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

mat_lstsq · stat_describe · stat_histogram · stat_zscore · interp_linear · interp_cubic · interp_scattered · poly_fit

同カテゴリ(linalg)

mat_lstsq · mat_svd · 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.