construct opなし → pairs(引数だけで決まる op —— 画像やデータの入力を取らない)import fullseye as fs; fs.ledger.space_filling_curve(kind='hilbert', order=4) (実装を直接呼ぶなら import mathops; mathops.space_filling_curve(kind='hilbert', order=4)、台帳から引くなら opsmath.get("space_filling_curve"))Hilbert / Moore / scan orders on a 2**order square — a permutation, checked.
Returns the visiting order as pairs (4**order, 2) of integer grid
coordinates. Two scan orders are included as control groups, not as
filler: row_major jumps a whole row at the end of each line and
boustrophedon (serpentine) does not, so “consecutive points are
adjacent” separates them, and the locality measurement separates all four.
★Why this earns its place — the defining properties are integers:
4**order cells, each exactly once: a
permutation, verified by sorting, not by sampling.k in index, the mean Euclidean distance
grows like sqrt(k) for Hilbert and much faster for row-major. That is
why Hilbert order is used for spatial indexes, and it is measurable here
rather than asserted.Raises ValueError: unknown kind; order < 1; the grid would
exceed the cap; moore with order < 2 (it is not defined below that).
HALCON: no operator.
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/poc_theorems_as_pictures.pypairs を入力に取れる)neighbour_index_gaps · curve_locality
construct)circle_packing_apollonian · ford_circles · phyllotaxis_pattern · neighbour_index_gaps · ifs_fractal · ifs_similarity_dimension · curve_locality
Provenance: mathops.py — MATH operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.