class documentation

class TestUfuncGenericLoops:

View In Hierarchy

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_​Py​UFunc Undocumented
Method test_binary_​Py​UFunc_​On_​Om_method Undocumented
Method test_binary_​Py​UFunc_​OO_​O Undocumented
Method test_binary_​Py​UFunc_​OO_​O_method Undocumented
Method test​_python​_complex​_conjugate Undocumented
Method test_unary_​Py​UFunc Undocumented
Method test_unary_​Py​UFunc_​O_​O Undocumented
Method test_unary_​Py​UFunc_​O_​O_method_full Compare the result of the object loop with non-object one
Method test_unary_​Py​UFunc_​O_​O_method_simple Undocumented
Class Variable np​_dtypes Undocumented
def f2(x, y):

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):

Undocumented

def test_binary_PyUFunc_On_Om_method(self, foo=foo):

Undocumented

def test_binary_PyUFunc_OO_O(self):

Undocumented

def test_binary_PyUFunc_OO_O_method(self, foo=foo):

Undocumented

def test_python_complex_conjugate(self):

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):

Undocumented

def test_unary_PyUFunc_O_O(self):

Undocumented

@pytest.mark.parametrize('ufunc', UNARY_OBJECT_UFUNCS)
def test_unary_PyUFunc_O_O_method_full(self, ufunc):
Compare the result of the object loop with non-object one
def test_unary_PyUFunc_O_O_method_simple(self, foo=foo):

Undocumented

np_dtypes =

Undocumented