Module ImportFrom alias alias alias Import alias identifier ImportFrom alias alias Import alias identifier ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore BinOpSub BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str TryFinally body Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Num Num finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults ListLoad ListLoad Num Num Num Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore ListComp BinOpAdd NameLoad BinOpMult BinOpSub NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If UnaryOpNot NameLoad body Assign NameStore ListLoad Num For NameStore NameLoad body If NameLoad body Assign NameStore BinOpAdd TupleLoad NameLoad Call NameLoad NameLoad orelse Assign NameStore TupleLoad NameLoad Assign NameStore BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Num NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num FunctionDef arguments args defaults vararg body Assign NameStore BinOpAdd TupleLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad SubscriptLoad NameLoad Slice Num Return Call NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Str TryFinally body Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad BinOpAdd Call NameLoad NameLoad Num Num keyword NameLoad Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad TupleLoad Num Num TupleLoad Num Num keyword ListLoad Num Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad TupleLoad Num Num TupleLoad Num Num keyword ListLoad Num Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad TupleLoad Num Num keyword ListLoad Num Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str TryFinally body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str TryFinally body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad TupleLoad Num Num keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults ListLoad ListLoad Num Num Num Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore ListComp BinOpAdd NameLoad BinOpMult BinOpSub NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If UnaryOpNot NameLoad body Assign NameStore ListLoad Num For NameStore NameLoad body If NameLoad body Assign NameStore BinOpAdd TupleLoad NameLoad Call NameLoad NameLoad orelse Assign NameStore TupleLoad NameLoad Assign NameStore BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad keyword BinOpAdd BinOpMult BinOpAdd Call NameLoad NameLoad Num Str Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Num NameLoad Call NameLoad BinOpAdd NameLoad TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num FunctionDef arguments args defaults vararg body Assign NameStore BinOpAdd TupleLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad keyword BinOpAdd BinOpAdd Str BinOpMult BinOpSub Call NameLoad NameLoad Num Str Str Return Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Str TryFinally body Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad BinOpAdd Call NameLoad NameLoad Num Num keyword NameLoad Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad TupleLoad Num Num TupleLoad Num Num keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad TupleLoad Num Num TupleLoad Num Num keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad TupleLoad Num Num keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad TupleLoad Num Num keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Num Expr Call NameLoad NameLoad NameLoad decorator_list decorator_list
N/A __future__ division print_function absolute_import N/A numpy np numpy.testing assert_ assert_allclose N/A scipy.special.orthogonal orth scipy.special._testutils FuncData test_eval_chebyt N/A N/A N/A N/A N/A n N/A N/A np arange 0 10000 7 N/A x N/A N/A 2 N/A N/A N/A np random rand 1 N/A v1 N/A N/A np cos N/A n N/A N/A np arccos x N/A v2 N/A N/A orth eval_chebyt n x N/A N/A assert_ N/A N/A np allclose v1 v2 rtol 1e-15 N/A test_eval_genlaguerre_restriction N/A N/A N/A N/A N/A N/A assert_ N/A N/A np isnan N/A N/A orth eval_genlaguerre 0 -1 0 N/A N/A assert_ N/A N/A np isnan N/A N/A orth eval_genlaguerre 0.1 -1 0 N/A test_warnings N/A N/A N/A N/A N/A olderr N/A N/A np seterr all raise N/A N/A N/A N/A N/A orth eval_legendre 1 0 N/A N/A N/A orth eval_laguerre 1 1 N/A N/A N/A orth eval_gegenbauer 1 1 0 N/A N/A N/A N/A np seterr olderr N/A TestPolys N/A object N/A N/A 
    Check that the eval_* functions agree with the constructed polynomials

     check_poly N/A N/A self func cls param_ranges x_range nn nparam nx rtol N/A N/A N/A 10 10 10 1e-08 N/A N/A N/A N/A N/A np random seed 1234 N/A dataset N/A N/A n N/A N/A np arange nn N/A N/A params N/A N/A a N/A N/A b a N/A N/A N/A np random rand nparam N/A N/A a b param_ranges N/A params N/A N/A N/A np asarray params T N/A N/A param_ranges N/A N/A params N/A 0 N/A p params N/A N/A param_ranges N/A N/A p N/A N/A n N/A tuple p N/A N/A p N/A n N/A x N/A N/A x_range N/A 0 N/A N/A N/A x_range N/A 1 N/A x_range N/A 0 N/A N/A N/A np random rand nx N/A N/A x N/A 0 N/A x_range N/A 0 N/A N/A x N/A 1 N/A x_range N/A 1 N/A poly N/A N/A np poly1d N/A cls p N/A z N/A N/A np c_ N/A N/A N/A N/A np tile p N/A nx 1 x N/A poly x N/A N/A N/A dataset append z N/A dataset N/A N/A np concatenate dataset axis 0 polyfunc N/A N/A N/A p N/A N/A p N/A N/A N/A N/A N/A p N/A 0 astype int N/A p N/A 1 N/A N/A func p N/A N/A olderr N/A N/A np seterr all raise N/A N/A N/A ds N/A FuncData polyfunc dataset N/A list N/A range N/A N/A len param_ranges 2 -1 rtol rtol N/A N/A N/A ds check N/A N/A N/A N/A np seterr olderr N/A test_jacobi N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_jacobi N/A orth jacobi param_ranges N/A N/A -0.99 10 N/A -0.99 10 x_range N/A -1 1 rtol 1e-05 N/A test_sh_jacobi N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_sh_jacobi N/A orth sh_jacobi param_ranges N/A N/A 1 10 N/A 0 1 x_range N/A 0 1 rtol 1e-05 N/A test_gegenbauer N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_gegenbauer N/A orth gegenbauer param_ranges N/A N/A -0.499 10 x_range N/A -1 1 rtol 1e-07 N/A test_chebyt N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_chebyt N/A orth chebyt param_ranges N/A x_range N/A -1 1 N/A test_chebyu N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_chebyu N/A orth chebyu param_ranges N/A x_range N/A -1 1 N/A test_chebys N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_chebys N/A orth chebys param_ranges N/A x_range N/A -2 2 N/A test_chebyc N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_chebyc N/A orth chebyc param_ranges N/A x_range N/A -2 2 N/A test_sh_chebyt N/A N/A self N/A N/A N/A olderr N/A N/A np seterr all ignore N/A N/A N/A N/A N/A self check_poly N/A orth eval_sh_chebyt N/A orth sh_chebyt param_ranges N/A x_range N/A 0 1 N/A N/A N/A N/A np seterr olderr N/A test_sh_chebyu N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_sh_chebyu N/A orth sh_chebyu param_ranges N/A x_range N/A 0 1 N/A test_legendre N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_legendre N/A orth legendre param_ranges N/A x_range N/A -1 1 N/A test_sh_legendre N/A N/A self N/A N/A N/A olderr N/A N/A np seterr all ignore N/A N/A N/A N/A N/A self check_poly N/A orth eval_sh_legendre N/A orth sh_legendre param_ranges N/A x_range N/A 0 1 N/A N/A N/A N/A np seterr olderr N/A test_genlaguerre N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_genlaguerre N/A orth genlaguerre param_ranges N/A N/A -0.99 10 x_range N/A 0 100 N/A test_laguerre N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_laguerre N/A orth laguerre param_ranges N/A x_range N/A 0 100 N/A test_hermite N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_hermite N/A orth hermite param_ranges N/A x_range N/A -100 100 N/A test_hermitenorm N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_hermitenorm N/A orth hermitenorm param_ranges N/A x_range N/A -100 100 N/A N/A TestRecurrence N/A object N/A N/A 
    Check that the eval_* functions sig='ld->d' and 'dd->d' agree.

     check_poly N/A N/A self func param_ranges x_range nn nparam nx rtol N/A N/A N/A 10 10 10 1e-08 N/A N/A N/A N/A N/A np random seed 1234 N/A dataset N/A N/A n N/A N/A np arange nn N/A N/A params N/A N/A a N/A N/A b a N/A N/A N/A np random rand nparam N/A N/A a b param_ranges N/A params N/A N/A N/A np asarray params T N/A N/A param_ranges N/A N/A params N/A 0 N/A p params N/A N/A param_ranges N/A N/A p N/A N/A n N/A tuple p N/A N/A p N/A n N/A x N/A N/A x_range N/A 0 N/A N/A N/A x_range N/A 1 N/A x_range N/A 0 N/A N/A N/A np random rand nx N/A N/A x N/A 0 N/A x_range N/A 0 N/A N/A x N/A 1 N/A x_range N/A 1 N/A kw N/A dict sig N/A N/A N/A N/A len p 1 d ->d N/A z N/A N/A np c_ N/A N/A N/A N/A np tile p N/A nx 1 x N/A func N/A p N/A x kw N/A N/A N/A dataset append z N/A dataset N/A N/A np concatenate dataset axis 0 polyfunc N/A N/A N/A p N/A N/A p N/A N/A N/A N/A N/A p N/A 0 astype int N/A p N/A 1 N/A kw N/A dict sig N/A N/A l N/A N/A N/A len p 1 d ->d N/A N/A func p kw N/A N/A olderr N/A N/A np seterr all raise N/A N/A N/A ds N/A FuncData polyfunc dataset N/A list N/A range N/A N/A len param_ranges 2 -1 rtol rtol N/A N/A N/A ds check N/A N/A N/A N/A np seterr olderr N/A test_jacobi N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_jacobi param_ranges N/A N/A -0.99 10 N/A -0.99 10 x_range N/A -1 1 N/A test_sh_jacobi N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_sh_jacobi param_ranges N/A N/A 1 10 N/A 0 1 x_range N/A 0 1 N/A test_gegenbauer N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_gegenbauer param_ranges N/A N/A -0.499 10 x_range N/A -1 1 N/A test_chebyt N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_chebyt param_ranges N/A x_range N/A -1 1 N/A test_chebyu N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_chebyu param_ranges N/A x_range N/A -1 1 N/A test_chebys N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_chebys param_ranges N/A x_range N/A -2 2 N/A test_chebyc N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_chebyc param_ranges N/A x_range N/A -2 2 N/A test_sh_chebyt N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_sh_chebyt param_ranges N/A x_range N/A 0 1 N/A test_sh_chebyu N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_sh_chebyu param_ranges N/A x_range N/A 0 1 N/A test_legendre N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_legendre param_ranges N/A x_range N/A -1 1 N/A test_sh_legendre N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_sh_legendre param_ranges N/A x_range N/A 0 1 N/A test_genlaguerre N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_genlaguerre param_ranges N/A N/A -0.99 10 x_range N/A 0 100 N/A test_laguerre N/A N/A self N/A N/A N/A N/A N/A self check_poly N/A orth eval_laguerre param_ranges N/A x_range N/A 0 100 N/A test_hermite N/A N/A self N/A N/A N/A v N/A N/A orth eval_hermite 70 1.0 N/A a -1.4570764857e+60 N/A N/A assert_allclose v a N/A N/A