volumential.wranglers.device_arrays#

Device-array plumbing shared by both wrangler backends.

Command-queue discovery, index-permutation inversion and box level scaling.

volumential.wranglers.device_arrays.level_to_rscale(tree, level: int) → float[source]#

Expansion rescaling factor for boxes on level.

volumential.wranglers.device_arrays.inverse_id_map(queue, mapped_ids) → ndarray | Array[source]#

Given a index mapping as its mapped ids, compute its inverse, and return the inverse by the inversely-mapped ids.