algebra opmatrix → rot_scaleimport fullseye as fs; fs.ledger.matrix_to_rot_scale(matrix) (実装を直接呼ぶなら import reprconv; reprconv.matrix_to_rot_scale(matrix)、台帳から引くなら opsreprconv.get("matrix_to_rot_scale"))2-D 相似変換 (2,2) → (角度[度], 倍率)。:func:rot_scale_to_matrix の逆。
倍率は列ノルム、角度は atan2(m[1,0], m[0,0])。
せん断を含む一般の (2,2) を渡しても例外は出ない(相似成分だけを読む)ので、
residual が要るときは呼び出し側で m - rot_scale_to_matrix(...) を取ること。
Args:
matrix: (2, 2)。
Returns:
2-tuple の float (angle_deg, scale)。
Raises:
ValueError: (2,2) でない / 退化(倍率 0)/ 非有限。
py -3.11 examples/representation_conversion.pyrot_scale を入力に取れる)algebra)angle_to_matrix · matrix_to_angle · rot_scale_to_matrix · shift_to_vector · vector_to_shift · cscalar_to_polar · polar_to_cscalar · countrate_to_counts
Provenance: reprconv.py — REPRCONV operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.