respy._numba
#
Special functions for using numba.
Module Contents#
Functions#
|
Convert an array to a tuple for indexing. |
|
Compute the sum over a boolean |
- respy._numba.array_to_tuple(tyctx, array_or_dict, indexer_array)[source]#
Convert an array to a tuple for indexing.
This function is taken from https://gist.github.com/sklam/830fe01343ba95828c3b24c391855c86 to create tuple from an array for indexing which is not possible within a Numba function.
- Parameters:
- array_or_dict
numpy.ndarray
ornumba.typed.Dict
Array for which the indexer is used.
- indexer_array
numpy.ndarray
Array which should be converted to a tuple.
- array_or_dict