sidpy.base.num_utils.build_ind_val_matrices

sidpy.base.num_utils.build_ind_val_matrices(unit_values)[source]

Builds indices and values matrices using given unit values for each dimension. This function is originally from pyUSID.io Unit values must be arranged from fastest varying to slowest varying

Parameters:

unit_values (list / tuple) – Sequence of values vectors for each dimension

Returns:

  • ind_mat (2D numpy array) – Indices matrix

  • val_mat (2D numpy array) – Values matrix