module documentation

Undocumented

Constant UNARY​_OBJECT​_UFUNCS Undocumented
Constant UNARY​_UFUNCS Undocumented
Class ​Test​Ufunc No class docstring; 0/2 class variable, 4/111 methods documented
Class ​Test​Ufunc​Generic​Loops Test generic loops.
Class ​Test​Ufunc​Kwargs Undocumented
Function ​_pickleable​_module​_global Undocumented
Function test​_reduce​_casterrors Undocumented
Function test​_trivial​_loop​_invalid​_cast Undocumented
Function test​_ufunc​_casterrors Undocumented
Function test​_ufunc​_methods​_floaterrors Undocumented
Function test​_ufunc​_noncontiguous Check that contiguous and non-contiguous calls to ufuncs have the same results for values in range(9)
Function test​_ufunc​_types Check all ufuncs that the correct type is returned. Avoid object and boolean types since many operations are not defined for for them.
Function test​_ufunc​_warn​_with​_nan Undocumented
UNARY_OBJECT_UFUNCS =

Undocumented

Value
[uf for uf in UNARY_UFUNCS if 'O->O' in uf.types]
UNARY_UFUNCS =

Undocumented

Value
[obj for obj in np.core.umath.__dict__.values() if isinstance(obj, np.ufunc)]
def _pickleable_module_global():

Undocumented

@pytest.mark.skipif(not HAS_REFCOUNT, reason='Python lacks refcounts')
@pytest.mark.parametrize('offset', [0, np.BUFSIZE//2, int(1.5*np.BUFSIZE)])
def test_reduce_casterrors(offset):

Undocumented

def test_trivial_loop_invalid_cast():

Undocumented

@pytest.mark.skipif(not HAS_REFCOUNT, reason='Python lacks refcounts')
def test_ufunc_casterrors():

Undocumented

@pytest.mark.parametrize('method', [np.add.accumulate, np.add.reduce, pytest.param((lambda x: np.add.reduceat(x, [0])), id='reduceat'), pytest.param((lambda x: np.log.at(x, [2])), id='at')])
def test_ufunc_methods_floaterrors(method):

Undocumented

@pytest.mark.parametrize('ufunc', [getattr(np, x) for x in dir(np) if isinstance(getattr(np, x), np.ufunc)])
def test_ufunc_noncontiguous(ufunc):
Check that contiguous and non-contiguous calls to ufuncs have the same results for values in range(9)
@pytest.mark.parametrize('ufunc', [getattr(np, x) for x in dir(np) if isinstance(getattr(np, x), np.ufunc)])
def test_ufunc_types(ufunc):

Check all ufuncs that the correct type is returned. Avoid object and boolean types since many operations are not defined for for them.

Choose the shape so even dot and matmul will succeed

@pytest.mark.parametrize('ufunc', [np.sign, np.equal])
def test_ufunc_warn_with_nan(ufunc):

Undocumented