pynbody.halo.details.iord_mapping

pynbody.halo.details.iord_mapping#

Functions

make_iord_to_offset_mapper(iord)

Given an array of unique integers, iord, make an object which maps from an iord value to offset in the array.

Classes

IordOffsetModifier(iord_to_offset, fpos_offset)

A wrapper around an IordToOffset which adds a constant offset to the result of the underlying mapping.

IordToOffset()

Methods

IordToOffsetDense(iord_array[, max_iord])

Methods

IordToOffsetSparse(iord_array)

Class for efficiently mapping from iords to offsets in the iord array, even if iord values are large.