Module ImportFrom alias alias alias ImportFrom alias Import alias identifier ImportFrom alias alias ImportFrom alias identifier ImportFrom alias alias alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return IfExp CompareIn NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpAdd BinOpMult NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpAdd BinOpMult NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpDiv BinOpAdd UnaryOpUSub NameLoad BinOpPow BinOpSub BinOpPow NameLoad Num BinOpMult BinOpMult Num NameLoad NameLoad Num BinOpMult Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpMult Num NameLoad Assign NameStore BinOpMult BinOpMult Num NameLoad NameLoad Assign NameStore BinOpSub BinOpPow NameLoad Num NameLoad Return BinOpDiv BinOpSub UnaryOpUSub NameLoad BinOpPow NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpMult Num NameLoad Assign NameStore BinOpMult BinOpMult Num NameLoad NameLoad Assign NameStore BinOpAdd BinOpSub BinOpPow NameLoad Num NameLoad Num Return BinOpDiv BinOpSub UnaryOpUSub NameLoad BinOpPow NameLoad Num NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return CompareLt BinOpSub BinOpPow NameLoad Num BinOpMult BinOpMult Num NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpAdd BinOpDiv NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad BinOpPow Call AttributeLoad NameLoad attr BinOpPow BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Num Num Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Dict NameLoad NameLoad NameLoad body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Dict NameLoad kwarg body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body If Call NameLoad NameLoad AttributeLoad NameLoad attr body If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign TupleStore NameStore NameStore NameLoad Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call NameLoad GeneratorExp SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Index Num comprehension NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Import alias identifier FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpMult NameLoad Num attr TupleLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return BinOpAdd BinOpAdd NameLoad NameLoad NameLoad decorator_list NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd BinOpSub NameLoad NameLoad UnaryOpUSub NameLoad decorator_list NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpInvert BinOpBitAnd NameLoad UnaryOpInvert NameLoad decorator_list NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A __future__ print_function division absolute_import timeit Timer N/A numpy np numba njit vectorize numba unittest_support unittest numba compiler typing typeof ir numba.compiler Pipeline _PipelineManager Flags numba.targets cpu support MemoryLeakMixin TestCase Namespace N/A dict N/A __getattr__ N/A N/A s k N/A N/A N/A N/A N/A k s N/A s N/A k N/A N/A N/A super Namespace s __getattr__ k N/A N/A axy N/A N/A a x y N/A N/A N/A N/A N/A a x y N/A ax2 N/A N/A a x y N/A N/A N/A N/A N/A a x y N/A pos_root N/A N/A As Bs Cs N/A N/A N/A N/A N/A N/A Bs N/A N/A N/A Bs 2.0 N/A N/A 4.0 As Cs 0.5 N/A 2.0 As N/A neg_root_common_subexpr N/A N/A As Bs Cs N/A N/A N/A _2As N/A 2.0 As N/A _4AsCs N/A N/A 2.0 _2As Cs N/A _Bs2_4AsCs N/A N/A Bs 2.0 _4AsCs N/A N/A N/A N/A Bs N/A _Bs2_4AsCs 0.5 _2As N/A neg_root_complex_subexpr N/A N/A As Bs Cs N/A N/A N/A _2As N/A 2.0 As N/A _4AsCs N/A N/A 2.0 _2As Cs N/A _Bs2_4AsCs N/A N/A N/A Bs 2.0 _4AsCs 0j N/A N/A N/A N/A Bs N/A _Bs2_4AsCs 0.5 _2As N/A N/A vaxy N/A vectorize axy call_stuff N/A N/A a0 a1 N/A N/A N/A N/A N/A np cos N/A vaxy a0 N/A N/A N/A np sin a1 1.0 1.0 N/A are_roots_imaginary N/A N/A As Bs Cs N/A N/A N/A N/A N/A N/A Bs 2 N/A N/A 4 As Cs 0 N/A div_add N/A N/A As Bs Cs N/A N/A N/A N/A N/A As Bs Cs N/A distance_matrix N/A N/A vectors N/A N/A N/A n_vectors N/A N/A vectors shape N/A 0 N/A result N/A N/A np empty N/A n_vectors n_vectors dtype N/A np float64 N/A i N/A range n_vectors N/A N/A j N/A range i n_vectors N/A N/A N/A result N/A N/A i j N/A result N/A N/A j i N/A N/A N/A np sum N/A N/A N/A vectors N/A i N/A vectors N/A j 2 0.5 N/A result N/A RewritesTester N/A Pipeline N/A mk_pipeline N/A N/A cls args return_type flags locals library typing_context target_context N/A None None N/A None None None N/A N/A N/A flags N/A N/A flags N/A Flags N/A N/A flags nrt True N/A N/A typing_context None N/A N/A typing_context N/A N/A typing Context N/A N/A target_context None N/A N/A target_context N/A N/A cpu CPUContext typing_context N/A N/A cls typing_context target_context library args return_type flags locals N/A classmethod mk_no_rw_pipeline N/A N/A cls args return_type flags locals library N/A None None N/A None kws N/A N/A N/A flags N/A N/A flags N/A Flags N/A N/A flags no_rewrites True N/A N/A N/A cls mk_pipeline args return_type flags locals library kws N/A classmethod N/A TestArrayExpressions N/A MemoryLeakMixin TestCase N/A test_simple_expr N/A N/A self N/A N/A N/A 
        Using a simple array expression, verify that rewriting is taking
        place, and is fusing loops.
         N/A A N/A N/A np linspace 0 1 10 N/A X N/A N/A np linspace 2 1 10 N/A Y N/A N/A np linspace 1 2 10 N/A arg_tys N/A N/A typeof arg N/A arg N/A A X Y N/A control_pipeline N/A N/A RewritesTester mk_no_rw_pipeline arg_tys N/A cres_0 N/A N/A control_pipeline compile_extra axy N/A nb_axy_0 N/A cres_0 entry_point N/A test_pipeline N/A N/A RewritesTester mk_pipeline arg_tys N/A cres_1 N/A N/A test_pipeline compile_extra axy N/A nb_axy_1 N/A cres_1 entry_point N/A control_pipeline2 N/A N/A RewritesTester mk_no_rw_pipeline arg_tys N/A cres_2 N/A N/A control_pipeline2 compile_extra ax2 N/A nb_ctl N/A cres_2 entry_point N/A expected N/A nb_axy_0 A X Y N/A actual N/A nb_axy_1 A X Y N/A control N/A nb_ctl A X Y N/A N/A N/A N/A np testing assert_array_equal expected actual N/A N/A N/A N/A np testing assert_array_equal control actual N/A ir0 N/A N/A control_pipeline interp blocks N/A ir1 N/A N/A test_pipeline interp blocks N/A ir2 N/A N/A control_pipeline2 interp blocks N/A N/A N/A self assertEqual N/A len ir0 N/A len ir1 N/A N/A N/A self assertEqual N/A len ir0 N/A len ir2 N/A N/A N/A self assertGreater N/A len N/A N/A ir0 N/A 0 body N/A len N/A N/A ir1 N/A 0 body N/A N/A N/A self assertEqual N/A len N/A N/A ir0 N/A 0 body N/A len N/A N/A ir2 N/A 0 body N/A _get_array_exprs N/A N/A self block N/A N/A N/A instr block N/A N/A N/A isinstance instr N/A ir Assign N/A N/A N/A isinstance N/A instr value N/A ir Expr N/A N/A N/A N/A N/A instr value op arrayexpr N/A N/A N/A instr N/A _array_expr_to_set N/A N/A self expr out N/A None N/A N/A 
        Convert an array expression tree into a set of operators.
         N/A N/A out None N/A N/A out N/A set N/A N/A N/A isinstance expr tuple N/A N/A N/A ValueError N/A N/A {0} not a tuple format expr N/A N/A operation operands expr N/A processed_operands N/A N/A operand operands N/A N/A N/A isinstance operand tuple N/A N/A N/A operand _ N/A N/A self _array_expr_to_set operand out N/A N/A N/A processed_operands append operand N/A processed_expr N/A operation N/A tuple processed_operands N/A N/A N/A out add processed_expr N/A N/A processed_expr out N/A _test_root_function N/A N/A self fn N/A pos_root N/A N/A A N/A N/A N/A np random random 10 N/A B N/A N/A N/A N/A np random random 10 1.0 N/A C N/A N/A N/A np random random 10 N/A arg_tys N/A N/A typeof arg N/A arg N/A A B C N/A control_pipeline N/A N/A RewritesTester mk_no_rw_pipeline arg_tys N/A control_cres N/A N/A control_pipeline compile_extra fn N/A nb_fn_0 N/A control_cres entry_point N/A test_pipeline N/A N/A RewritesTester mk_pipeline arg_tys N/A test_cres N/A N/A test_pipeline compile_extra fn N/A nb_fn_1 N/A test_cres entry_point N/A np_result N/A fn A B C N/A nb_result_0 N/A nb_fn_0 A B C N/A nb_result_1 N/A nb_fn_1 A B C N/A N/A N/A N/A np testing assert_array_almost_equal np_result nb_result_0 N/A N/A N/A N/A np testing assert_array_almost_equal nb_result_0 nb_result_1 N/A N/A Namespace N/A locals N/A _assert_total_rewrite N/A N/A self ir0 ir1 N/A N/A N/A 
        Given two dictionaries of Numba IR blocks, check to make sure the
        control IR (ir0) has no array expressions, while the test IR
        contains one and only one.
         N/A N/A N/A self assertEqual N/A len ir0 N/A len ir1 N/A N/A N/A self assertGreater N/A len N/A N/A ir0 N/A 0 body N/A len N/A N/A ir1 N/A 0 body N/A N/A N/A self assertEqual N/A len N/A list N/A N/A self _get_array_exprs N/A N/A ir0 N/A 0 body 0 N/A N/A N/A self assertEqual N/A len N/A list N/A N/A self _get_array_exprs N/A N/A ir1 N/A 0 body 1 N/A test_complicated_expr N/A N/A self N/A N/A N/A 
        Using the polynomial root function, ensure the full expression is
        being put in the same kernel with no remnants of intermediate
        array expressions.
         N/A ns N/A N/A self _test_root_function N/A N/A N/A self _assert_total_rewrite N/A N/A N/A ns control_pipeline interp blocks N/A N/A N/A ns test_pipeline interp blocks N/A test_common_subexpressions N/A N/A self fn N/A neg_root_common_subexpr N/A N/A 
        Attempt to verify that rewriting will incorporate user common
        subexpressions properly.
         N/A ns N/A N/A self _test_root_function fn N/A ir0 N/A N/A N/A ns control_pipeline interp blocks N/A ir1 N/A N/A N/A ns test_pipeline interp blocks N/A N/A N/A self assertEqual N/A len ir0 N/A len ir1 N/A N/A N/A self assertGreater N/A len N/A N/A ir0 N/A 0 body N/A len N/A N/A ir1 N/A 0 body N/A N/A N/A self assertEqual N/A len N/A list N/A N/A self _get_array_exprs N/A N/A ir0 N/A 0 body 0 N/A array_expr_instrs N/A list N/A N/A self _get_array_exprs N/A N/A ir1 N/A 0 body N/A N/A N/A self assertGreater N/A len array_expr_instrs 1 N/A array_sets N/A list N/A N/A N/A N/A self _array_expr_to_set N/A N/A instr value expr N/A 1 N/A instr array_expr_instrs N/A N/A expr_set_0 expr_set_1 N/A zip N/A array_sets N/A -1 N/A array_sets N/A 1 N/A N/A intersections N/A N/A expr_set_0 intersection expr_set_1 N/A intersections N/A N/A N/A N/A self fail N/A N/A Common subexpressions detected in array expressions ({0}) format intersections N/A test_complex_subexpression N/A N/A self N/A N/A N/A N/A N/A self test_common_subexpressions neg_root_complex_subexpr N/A test_ufunc_and_dufunc_calls N/A N/A self N/A N/A N/A 
        Verify that ufunc and DUFunc calls are being properly included in
        array expressions.
         N/A A N/A N/A N/A np random random 10 N/A B N/A N/A N/A np random random 10 N/A arg_tys N/A N/A typeof arg N/A arg N/A A B N/A vaxy_descr N/A N/A vaxy _dispatcher targetdescr N/A control_pipeline N/A N/A RewritesTester mk_no_rw_pipeline arg_tys typing_context N/A vaxy_descr typing_context target_context N/A vaxy_descr target_context N/A cres_0 N/A N/A control_pipeline compile_extra call_stuff N/A nb_call_stuff_0 N/A cres_0 entry_point N/A test_pipeline N/A N/A RewritesTester mk_pipeline arg_tys typing_context N/A vaxy_descr typing_context target_context N/A vaxy_descr target_context N/A cres_1 N/A N/A test_pipeline compile_extra call_stuff N/A nb_call_stuff_1 N/A cres_1 entry_point N/A expected N/A call_stuff A B N/A control N/A nb_call_stuff_0 A B N/A actual N/A nb_call_stuff_1 A B N/A N/A N/A N/A np testing assert_array_almost_equal expected control N/A N/A N/A N/A np testing assert_array_almost_equal expected actual N/A N/A N/A self _assert_total_rewrite N/A N/A control_pipeline interp blocks N/A N/A test_pipeline interp blocks N/A test_cmp_op N/A N/A self N/A N/A N/A 
        Verify that comparison operators are supported by the rewriter.
         N/A ns N/A N/A self _test_root_function are_roots_imaginary N/A N/A N/A self _assert_total_rewrite N/A N/A N/A ns control_pipeline interp blocks N/A N/A N/A ns test_pipeline interp blocks N/A N/A TestRewriteIssues N/A MemoryLeakMixin TestCase N/A test_issue_1184 N/A N/A self N/A N/A numba jit N/A numpy np foo N/A N/A arr N/A N/A N/A arr N/A N/A jit nopython True bar N/A N/A arr N/A N/A N/A c N/A foo arr N/A d N/A foo arr N/A N/A c d N/A N/A jit nopython True N/A arr N/A N/A np arange 10 N/A N/A out_c out_d N/A bar arr N/A N/A N/A self assertIs out_c out_d N/A N/A N/A self assertIs out_c arr N/A test_issue_1264 N/A N/A self N/A N/A N/A n 100 N/A x N/A N/A N/A N/A N/A np random uniform size N/A n 3 reshape N/A n 3 N/A expected N/A distance_matrix x N/A actual N/A N/A njit distance_matrix x N/A N/A N/A N/A np testing assert_array_almost_equal expected actual N/A test_issue_1372 N/A N/A self N/A N/A N/A Test array expression with duplicated term numba njit foo N/A N/A a b N/A N/A N/A b N/A N/A np sin b N/A N/A N/A b b a N/A njit N/A a N/A N/A N/A np random uniform 10 N/A b N/A N/A N/A np random uniform 10 N/A expect N/A N/A foo py_func a b N/A got N/A foo a b N/A N/A N/A N/A np testing assert_allclose got expect N/A test_unary_arrayexpr N/A N/A self N/A N/A N/A 
        Typing of unary array expression (np.negate) can be incorrect.
         foo N/A N/A a b N/A N/A N/A N/A N/A b a N/A a N/A njit N/A b 1.5 N/A a N/A N/A np arange 10 dtype N/A np int32 N/A expect N/A N/A foo py_func a b N/A got N/A foo a b N/A N/A N/A self assertPreciseEqual got expect N/A test_bitwise_arrayexpr N/A N/A self N/A N/A N/A 
        Typing of bitwise boolean array expression can be incorrect
        (issue #1813).
         foo N/A N/A a b N/A N/A N/A N/A N/A a N/A b N/A njit N/A a N/A N/A np array N/A True True False False N/A b N/A N/A np array N/A False True False True N/A expect N/A N/A foo py_func a b N/A got N/A foo a b N/A N/A N/A self assertPreciseEqual got expect N/A N/A TestSemantics N/A MemoryLeakMixin N/A unittest TestCase N/A test_division_by_zero N/A N/A self N/A N/A N/A pyfunc div_add N/A cfunc N/A njit pyfunc N/A a N/A N/A np float64 N/A 0.0 1.0 N/A float inf N/A b N/A N/A np float64 N/A 0.0 0.0 1.0 N/A c N/A N/A np ones_like a N/A expect N/A pyfunc a b c N/A got N/A cfunc a b c N/A N/A N/A N/A np testing assert_array_equal expect got N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main