ewoksfluo.math.pad#

Functions

pad_array(value, max_len)

Pad array when the length is smaller than max_len.

pad_arrays(max_len, *all_arrays)

Pad all sequence-like values in all dictionaries to the specified max_len with nan.

pad_length(*all_arrays)

Return the length to which all arrays should be padded to be the same size.

stack_ragged_arrays(arrays)

Stack arrays with possibly different first dimension lengths.