class documentation
class TestUfuncGenericLoops: (source)
Test generic loops.
The loops to be tested are:
PyUFunc_ff_f_As_dd_d PyUFunc_ff_f PyUFunc_dd_d PyUFunc_gg_g PyUFunc_FF_F_As_DD_D PyUFunc_DD_D PyUFunc_FF_F PyUFunc_GG_G PyUFunc_OO_O PyUFunc_OO_O_method PyUFunc_f_f_As_d_d PyUFunc_d_d PyUFunc_f_f PyUFunc_g_g PyUFunc_F_F_As_D_D PyUFunc_F_F PyUFunc_D_D PyUFunc_G_G PyUFunc_O_O PyUFunc_O_O_method PyUFunc_On_Om
Where:
f -- float d -- double g -- long double F -- complex float D -- complex double G -- complex long double O -- python object
It is difficult to assure that each of these loops is entered from the Python level as the special cased loops are a moving target and the corresponding types are architecture dependent. We probably need to define C level testing ufuncs to get at them. For the time being, I've just looked at the signatures registered in the build directory to find relevant functions.
Class | foo |
Undocumented |
Method | f2 |
Undocumented |
Method | test_binary_ |
Undocumented |
Method | test_binary_ |
Undocumented |
Method | test_binary_ |
Undocumented |
Method | test_binary_ |
Undocumented |
Method | test |
Undocumented |
Method | test_unary_ |
Undocumented |
Method | test_unary_ |
Undocumented |
Method | test_unary_ |
Compare the result of the object loop with non-object one |
Method | test_unary_ |
Undocumented |
Class Variable | np |
Undocumented |
@pytest.mark.parametrize( 'input_dtype,output_dtype', np_dtypes)
def test_binary_PyUFunc(self, input_dtype, output_dtype, f=f2, x=0, y=1): (source) ¶
def test_binary_PyUFunc(self, input_dtype, output_dtype, f=f2, x=0, y=1): (source) ¶
Undocumented
@pytest.mark.parametrize( 'input_dtype,output_dtype', np_dtypes)
def test_unary_PyUFunc(self, input_dtype, output_dtype, f=np.exp, x=0, y=1): (source) ¶
def test_unary_PyUFunc(self, input_dtype, output_dtype, f=np.exp, x=0, y=1): (source) ¶
Undocumented
@pytest.mark.parametrize( 'ufunc', UNARY_OBJECT_UFUNCS)
def test_unary_PyUFunc_O_O_method_full(self, ufunc): (source) ¶
def test_unary_PyUFunc_O_O_method_full(self, ufunc): (source) ¶
Compare the result of the object loop with non-object one