Module ImportFrom alias alias alias Import alias Import alias Import alias Import alias identifier ImportFrom alias identifier ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias identifier ImportFrom alias alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults vararg body Return Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore NameStore ListLoad TupleLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd TupleLoad NameLoad NameLoad keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore IfExp CompareIn NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad decorator_list Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Assign NameStore BinOpMult ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpFloorDiv Call NameLoad NameLoad Num Expr Call NameLoad NameLoad NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore ListLoad BinOpAdd Num Num BinOpAdd Num Num BinOpAdd Num Num BinOpAdd Num Num BinOpAdd Num Num BinOpSub Num Num BinOpAdd Num Num BinOpAdd Num Num BinOpAdd Num Num BinOpSub Num Num BinOpAdd Num Num BinOpSub Num Num BinOpAdd Num Num BinOpAdd Num Num Num UnaryOpUAdd BinOpSub Num Num Assign NameStore BinOpMult ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpFloorDiv Call NameLoad NameLoad Num Expr Call NameLoad NameLoad NameLoad keyword Num Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Expr Call NameLoad NameLoad NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore ListLoad TupleLoad NameLoad TupleLoad NameLoad Assign NameStore BinOpMult ListLoad TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list Assign NameStore ListLoad Num Num Num Num Num Num Num Num Assign NameStore BinOpMult ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd BinOpFloorDiv Call NameLoad NameLoad Num Num Expr Call NameLoad NameLoad NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore ListLoad BinOpAdd Num Num BinOpAdd Num Num BinOpAdd Num Num BinOpAdd Num Num Num Num BinOpAdd Num Num BinOpAdd Num Num BinOpAdd Num Num BinOpSub Num Num BinOpAdd Num Num BinOpSub Num Num Assign NameStore BinOpMult ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd BinOpFloorDiv Call NameLoad NameLoad Num Num Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpPow Call AttributeLoad NameLoad attr Num Num Expr Yield NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Yield NameLoad Assign NameStore BinOpPow Call AttributeLoad Call AttributeLoad NameLoad attr Num attr TupleLoad Num Num Num Num Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call Call NameLoad keyword NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call Call NameLoad keyword NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num For NameStore TupleLoad Num Num Num Num BinOpSub NameLoad Num NameLoad BinOpAdd NameLoad Num Num body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Num For NameStore TupleLoad Num Num Num body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num keyword Num attr AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call Call NameLoad keyword NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call NameLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call Call NameLoad keyword NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore ListComp BinOpSub Call AttributeLoad NameLoad attr NameLoad Num comprehension NameStore NameLoad For NameStore TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call NameLoad ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call NameLoad ListLoad Num Num ListLoad Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call Call NameLoad keyword NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore BinOpPow Call AttributeLoad NameLoad attr Num Num Assign NameStore BinOpSub Call AttributeLoad NameLoad attr Num Num For NameStore TupleLoad NameLoad Call NameLoad NameLoad body For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad For NameStore TupleLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad NameLoad BinOpMult ListLoad Call NameLoad Str Num Num Assign NameStore BinOpSub Call AttributeLoad NameLoad attr Num Num For NameStore TupleLoad NameLoad Call NameLoad NameLoad body For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad For NameStore TupleLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call Call NameLoad keyword NameLoad NameLoad FunctionDef arguments args defaults vararg body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num Num Call NameLoad Str Call NameLoad Str Call NameLoad Str Assert CompareEq Call NameLoad NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Call NameLoad Str Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd ListLoad Num Num Num Num Call NameLoad Str Call NameLoad Str BinOpMult ListLoad Call NameLoad Str Num If CompareGtE NameLoad TupleLoad Num Num body Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num orelse Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad SubscriptLoad NameLoad Slice Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore TupleLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad SubscriptLoad NameLoad Slice Num NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call Call NameLoad keyword NameLoad NameLoad FunctionDef arguments args defaults vararg body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num NameLoad Expr Call NameLoad NameLoad Num Expr Call NameLoad NameLoad Num TupleLoad Num Num Expr Call NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num Num Num Num Num Assert CompareEq Call NameLoad NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad decorator_list decorator_list
N/A __future__ print_function absolute_import division N/A itertools N/A math N/A sys N/A numpy np numba unittest_support unittest numba.compiler compile_isolated Flags utils numba jit typeof types numba.numpy_support version np_version support TestCase CompilationCache N/A no_pyobj_flags N/A Flags N/A N/A N/A no_pyobj_flags set nrt sinc N/A N/A x N/A N/A N/A N/A N/A np sinc x N/A angle1 N/A N/A x N/A N/A N/A N/A N/A np angle x N/A angle2 N/A N/A x deg N/A N/A N/A N/A N/A np angle x deg N/A diff1 N/A N/A a N/A N/A N/A N/A N/A np diff a N/A diff2 N/A N/A a n N/A N/A N/A N/A N/A np diff a n N/A bincount1 N/A N/A a N/A N/A N/A N/A N/A np bincount a N/A bincount2 N/A N/A a w N/A N/A N/A N/A N/A np bincount a weights w N/A searchsorted N/A N/A a v N/A N/A N/A N/A N/A np searchsorted a v N/A digitize N/A N/A N/A args N/A N/A N/A N/A np digitize args N/A histogram N/A N/A N/A args N/A N/A N/A N/A np histogram args N/A TestNPFunctions N/A TestCase N/A N/A 
    Tests for various Numpy functions.
     setUp N/A N/A self N/A N/A N/A N/A self ccache N/A CompilationCache N/A N/A self rnd N/A N/A N/A np random RandomState 42 N/A run_unary N/A N/A self pyfunc x_types x_values flags func_extra_types func_extra_args ignore_sign_on_zero abs_tol N/A no_pyobj_flags None None False None kwargs N/A N/A 
        Runs tests for a unary function operating in the numerical real space.

        Parameters
        ----------
        pyfunc : a python function definition holding that calls the numpy
                 functions to be tested.
        x_types: the types of the values being tested, see numba.types
        x_values: the numerical values of the values to be tested
        flags: flags to pass to the CompilationCache::ccache::compile function
        func_extra_types: the types of additional arguments to the numpy
                          function
        func_extra_args:  additional arguments to the numpy function
        ignore_sign_on_zero: boolean as to whether to allow zero values
        with incorrect signs to be considered equal
        prec: the required precision match, see assertPreciseEqual

        Notes:
        ------
        x_types and x_values must have the same length

         N/A N/A tx vx N/A zip x_types x_values N/A N/A N/A func_extra_args None N/A N/A func_extra_types func_extra_args N/A N/A N/A N/A xtypes xargs N/A zip func_extra_types func_extra_args N/A N/A cr N/A N/A N/A self ccache compile pyfunc N/A N/A tx xtypes flags flags N/A cfunc N/A cr entry_point N/A got N/A cfunc vx xargs N/A expected N/A pyfunc vx xargs N/A N/A N/A scalty N/A tx dtype N/A N/A N/A AttributeError N/A N/A scalty tx N/A prec N/A N/A scalty N/A N/A types float32 N/A types complex64 single double N/A msg N/A for input %r with prec %r N/A vx prec N/A N/A N/A self assertPreciseEqual got expected prec prec msg msg ignore_sign_on_zero ignore_sign_on_zero abs_tol abs_tol kwargs N/A test_sinc N/A N/A self N/A N/A N/A 
        Tests the sinc() function.
        This test is purely to assert numerical computations are correct.
         N/A isoz True N/A tol eps N/A pyfunc sinc check N/A N/A x_types x_values N/A kwargs N/A N/A N/A N/A self run_unary pyfunc x_types x_values ignore_sign_on_zero isoz abs_tol tol kwargs N/A N/A x_values N/A 1.0 -1.0 0.0 -0.0 0.5 -0.5 5 -5 5e-21 -5e-21 N/A x_types N/A N/A N/A types float32 N/A types float64 N/A N/A len x_values 2 N/A N/A check x_types x_values N/A x_values N/A N/A N/A np array x_values dtype N/A np float64 N/A x_types N/A N/A typeof v N/A v x_values N/A N/A check x_types x_values N/A x_values N/A N/A 1.0 0j N/A -1 0j N/A 0.0 0j N/A -0.0 0j N/A 0 1j N/A 0 1j N/A 0.5 0j N/A -0.5 0j N/A 0.5 0.5j N/A -0.5 0.5j N/A 5 5j N/A -5 5j N/A 5e-21 0j N/A -5e-21 0j 5e-21j N/A N/A 0 5e-21j N/A x_types N/A N/A N/A types complex64 N/A types complex128 N/A N/A len x_values 2 N/A N/A check x_types x_values ulps 2 N/A x_values N/A N/A N/A np array x_values dtype N/A np complex128 N/A x_types N/A N/A typeof v N/A v x_values N/A N/A check x_types x_values ulps 2 N/A test_angle N/A N/A self flags N/A no_pyobj_flags N/A N/A 
        Tests the angle() function.
        This test is purely to assert numerical computations are correct.
         N/A pyfunc1 angle1 N/A pyfunc2 angle2 check N/A N/A x_types x_values N/A N/A N/A N/A N/A self run_unary pyfunc1 x_types x_values N/A xtra_values N/A N/A True N/A False N/A xtra_types N/A N/A N/A N/A types bool_ N/A len xtra_values N/A N/A N/A self run_unary pyfunc2 x_types x_values func_extra_types xtra_types func_extra_args xtra_values N/A N/A x_values N/A 1.0 -1.0 0.0 -0.0 0.5 -0.5 5 -5 N/A x_types N/A N/A N/A types float32 N/A types float64 N/A N/A N/A len x_values 2 1 N/A N/A check x_types x_values N/A x_values N/A N/A N/A np array x_values dtype N/A np float64 N/A x_types N/A N/A typeof v N/A v x_values N/A N/A check x_types x_values N/A x_values N/A N/A 1.0 0j N/A -1 0j N/A 0.0 0j N/A -0.0 0j 1j -1j N/A 0.5 0j N/A -0.5 0j N/A 0.5 0.5j N/A -0.5 0.5j N/A 5 5j N/A -5 5j N/A x_types N/A N/A N/A types complex64 N/A types complex128 N/A N/A N/A len x_values 2 1 N/A N/A check x_types x_values N/A x_values N/A N/A np array x_values N/A x_types N/A N/A types complex64 N/A types complex128 N/A N/A check x_types x_values N/A diff_arrays N/A N/A self N/A N/A N/A 
        Some test arrays for np.diff()
         N/A a N/A N/A N/A np arange 12 3 N/A N/A a N/A b N/A N/A a reshape N/A 3 4 N/A N/A b N/A c N/A N/A N/A N/A N/A np arange 24 reshape N/A 3 2 4 3 N/A N/A c N/A test_diff1 N/A N/A self N/A N/A N/A pyfunc diff1 N/A cfunc N/A N/A jit nopython True pyfunc N/A arr N/A N/A self diff_arrays N/A N/A expected N/A pyfunc arr N/A got N/A cfunc arr N/A N/A N/A self assertPreciseEqual expected got N/A a N/A N/A np array 42 N/A N/A N/A self assertTypingError N/A N/A N/A cfunc a N/A test_diff2 N/A N/A self N/A N/A N/A pyfunc diff2 N/A cfunc N/A N/A jit nopython True pyfunc N/A arr N/A N/A self diff_arrays N/A N/A size N/A N/A arr shape N/A -1 N/A n N/A 0 1 2 3 N/A size 1 size N/A size 1 421 N/A N/A expected N/A pyfunc arr n N/A got N/A cfunc arr n N/A N/A N/A self assertPreciseEqual expected got N/A arr N/A N/A np array 42 N/A N/A N/A self assertTypingError N/A N/A N/A cfunc arr 1 N/A arr N/A N/A np arange 10 N/A n N/A -1 -2 -42 N/A N/A N/A N/A self assertRaises ValueError raises N/A N/A N/A cfunc arr n N/A N/A N/A self assertIn order must be non-negative N/A str N/A raises exception N/A bincount_sequences N/A N/A self N/A N/A N/A 
        Some test sequences for np.bincount()
         N/A a N/A 1 2 5 2 3 20 N/A b N/A N/A np array N/A 5 8 42 5 N/A c N/A N/A N/A N/A N/A self rnd randint 0 100 size 300 astype N/A np int8 N/A N/A a b c N/A test_bincount1 N/A N/A self N/A N/A N/A pyfunc bincount1 N/A cfunc N/A N/A jit nopython True pyfunc N/A seq N/A N/A self bincount_sequences N/A N/A expected N/A pyfunc seq N/A got N/A cfunc seq N/A N/A N/A self assertPreciseEqual expected got N/A N/A N/A self assertRaises ValueError raises N/A N/A N/A cfunc N/A 2 -1 N/A N/A N/A self assertIn first argument must be non-negative N/A str N/A raises exception N/A test_bincount2 N/A N/A self N/A N/A N/A pyfunc bincount2 N/A cfunc N/A N/A jit nopython True pyfunc N/A seq N/A N/A self bincount_sequences N/A N/A w N/A N/A N/A N/A math sqrt x 2 N/A x seq N/A weights N/A w N/A N/A np array w N/A N/A expected N/A pyfunc seq weights N/A got N/A cfunc seq weights N/A N/A N/A self assertPreciseEqual expected got N/A N/A N/A self assertRaises ValueError raises N/A N/A N/A cfunc N/A 2 -1 N/A 0 0 N/A N/A N/A self assertIn first argument must be non-negative N/A str N/A raises exception N/A N/A N/A self assertRaises ValueError raises N/A N/A N/A cfunc N/A 2 -1 N/A 0 N/A N/A N/A self assertIn weights and list don't have the same length N/A str N/A raises exception N/A test_searchsorted N/A N/A self N/A N/A N/A pyfunc searchsorted N/A cfunc N/A N/A jit nopython True pyfunc check N/A N/A a v N/A N/A N/A expected N/A pyfunc a v N/A got N/A cfunc a v N/A N/A N/A self assertPreciseEqual expected got N/A N/A bins N/A N/A N/A np arange 5 2 N/A values N/A N/A N/A np arange 20 1 N/A a N/A bins N/A list bins N/A N/A v values N/A N/A N/A check a v N/A v N/A values N/A N/A values reshape N/A 4 5 N/A N/A N/A check a v N/A N/A check a N/A list values N/A bins N/A N/A N/A np float64 N/A N/A list bins N/A N/A N/A float nan 7 2.0 N/A values N/A N/A N/A np arange 20 0.5 N/A a N/A bins N/A list bins N/A N/A v values N/A N/A N/A check a v N/A v N/A values N/A N/A values reshape N/A 4 5 N/A N/A N/A check a v N/A N/A check a N/A list values N/A test_digitize N/A N/A self N/A N/A N/A pyfunc digitize N/A cfunc N/A N/A jit nopython True pyfunc check N/A N/A N/A args N/A N/A expected N/A pyfunc args N/A got N/A cfunc args N/A N/A N/A self assertPreciseEqual expected got N/A N/A values N/A N/A np float64 N/A 0 0.99 1 4.4 4.5 7 8 9 9.5 N/A float inf N/A float -inf N/A float nan N/A N/A N/A len values 12 N/A N/A N/A N/A self rnd shuffle values N/A bins1 N/A N/A np float64 N/A 1 3 4.5 8 N/A bins2 N/A N/A np float64 N/A 1 3 4.5 8 N/A float inf N/A float -inf N/A bins3 N/A N/A np float64 N/A N/A 1 3 4.5 8 N/A float inf N/A float -inf N/A N/A N/A float nan 10 N/A N/A np_version N/A 1 10 N/A N/A all_bins N/A bins1 bins2 bins3 N/A xs N/A values N/A N/A values reshape N/A 3 4 N/A N/A all_bins N/A bins1 bins2 N/A xs N/A values N/A bins all_bins N/A N/A N/A N/A bins sort N/A x xs N/A N/A N/A check x bins N/A N/A check x N/A bins N/A -1 N/A bins all_bins N/A N/A N/A N/A bins sort N/A right N/A True False N/A N/A N/A check values bins right N/A N/A check values N/A bins N/A -1 right N/A N/A check N/A list values bins1 N/A test_histogram N/A N/A self N/A N/A N/A pyfunc histogram N/A cfunc N/A N/A jit nopython True pyfunc check N/A N/A N/A args N/A N/A N/A pyhist pybins N/A pyfunc args N/A N/A chist cbins N/A cfunc args N/A N/A N/A self assertPreciseEqual pyhist chist N/A N/A N/A self assertPreciseEqual pybins cbins prec double ulps 2 N/A check_values N/A N/A values N/A N/A N/A bins N/A N/A np float64 N/A 1 3 4.5 8 N/A N/A check values bins N/A N/A check N/A N/A values reshape N/A 3 4 bins N/A N/A check values 7 N/A N/A check values 7 N/A 1.0 13.5 N/A N/A check values N/A N/A values N/A N/A np float64 N/A 0 0.99 1 4.4 4.5 7 8 9 9.5 42.5 -1.0 -0.0 N/A N/A N/A len values 12 N/A N/A N/A N/A self rnd shuffle values N/A N/A check_values values N/A N/A