:py:mod:`respy._numba` ====================== .. py:module:: respy._numba .. autoapi-nested-parse:: Special functions for using numba. .. !! processed by numpydoc !! Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: respy._numba.array_to_tuple respy._numba.sum_over_numba_boolean_unituple .. py:function:: array_to_tuple(tyctx, array_or_dict, indexer_array) 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** : :obj:`numpy.ndarray` or :obj:`numba.typed.Dict` Array for which the indexer is used. **indexer_array** : :obj:`numpy.ndarray` Array which should be converted to a tuple. .. !! processed by numpydoc !! .. py:function:: sum_over_numba_boolean_unituple(tuple_) Compute the sum over a boolean :class:`numba.types.UniTuple`. :Parameters: **tuple_** : :obj:`numba.types.UniTuple`\[:ref:`bool `] .. :Returns: **sum_** : :obj:`Union`\[:class:`python:float`, :class:`python:int`] .. .. !! processed by numpydoc !!