fullseye

space_filling_curve — MATH construct op

使い方

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:

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.

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

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

詳しい使い方ガイド

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

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

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

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.