module documentation

Undocumented

Variable avx​_ufuncs Undocumented
Variable glibc​_older​_than Undocumented
Variable glibcver Undocumented
Class _​Filter​Invalids Undocumented
Class ​Test​Absolute​Negative Undocumented
Class ​Test​Add Undocumented
Class ​Test​Arctan2​Special​Values Undocumented
Class ​Test​Attributes Undocumented
Class ​Test​AVXFloat32​Transcendental Undocumented
Class ​Test​AVXUfuncs Undocumented
Class ​Test​Bitwise​UFuncs Undocumented
Class ​Test​Bool Undocumented
Class ​Test​Cbrt Undocumented
Class ​Test​Choose Undocumented
Class ​Test​Comparisons Undocumented
Class ​Test​Complex​Functions No class docstring; 0/1 class variable, 1/6 method documented
Class ​Test​Constants Undocumented
Class ​Test​Degrees Undocumented
Class ​Test​Division Undocumented
Class ​Test​Exp Undocumented
Class ​Test​Exp2 Undocumented
Class ​Test​Expm1 Undocumented
Class ​Test​Float_power Undocumented
Class ​Test​Floating​Point Undocumented
Class ​Test​Fmax Undocumented
Class ​Test​Fmin Undocumented
Class ​Test​FPClass Undocumented
Class ​Test​FRExp Undocumented
Class ​Test​Frompyfunc Undocumented
Class ​Test​Heavside Undocumented
Class ​Test​Hypot Undocumented
Class ​Test​Hypot​Special​Values Undocumented
Class ​Test​Int Undocumented
Class ​Test​LDExp Undocumented
Class ​Test​Ldexp Undocumented
Class ​Test​Log Undocumented
Class ​Test​Log1p Undocumented
Class ​Test​Log2 Undocumented
Class ​Test​Log​Add​Exp Undocumented
Class ​Test​Log​Add​Exp2 Undocumented
Class ​Test​Maximum Undocumented
Class ​Test​Minimum Undocumented
Class ​Test​Min​Max Undocumented
Class ​Test​Out Undocumented
Class ​Test​Positive Undocumented
Class ​Test​Power Undocumented
Class ​Test​Radians Undocumented
Class ​Test​Rational​Functions Undocumented
Class ​Test​Remainder Undocumented
Class ​Test​Rounding​Functions No class docstring; 2/3 methods documented
Class ​Test​Sign Undocumented
Class ​Test​Special​Floats Undocumented
Class ​Test​Special​Methods Undocumented
Class ​Test​Subclass Undocumented
Function ​_check​_branch​_cut Check for a branch cut in a function.
Function ​_signs Undocumented
Function ​_test​_nextafter Undocumented
Function ​_test​_spacing Undocumented
Function assert​_arctan2​_isnan Undocumented
Function assert​_arctan2​_isninf Undocumented
Function assert​_arctan2​_isnzero Undocumented
Function assert​_arctan2​_ispinf Undocumented
Function assert​_arctan2​_ispzero Undocumented
Function assert​_hypot​_isinf Undocumented
Function assert​_hypot​_isnan Undocumented
Function bad​_arcsinh No summary
Function floor​_divide​_and​_remainder Undocumented
Function get​_glibc​_version Undocumented
Function on​_powerpc True if we are running on a Power PC platform.
Function test​_bad​_legacy​_gufunc​_silent​_errors Undocumented
Function test​_bad​_legacy​_ufunc​_silent​_errors Undocumented
Function test​_complex​_nan​_comparisons Undocumented
Function test​_copysign Undocumented
Function test​_memoverlap​_accumulate Undocumented
Function test​_nextafter Undocumented
Function test​_nextafter​_0 Undocumented
Function test​_nextafter​_vs​_spacing Undocumented
Function test​_nextafterf Undocumented
Function test​_nextafterl Undocumented
Function test​_outer​_bad​_subclass Undocumented
Function test​_outer​_exceeds​_maxdims Undocumented
Function test​_outer​_subclass​_preserve Undocumented
Function test​_pos​_nan Check np.nan is a positive nan.
Function test​_reduceat Test bug in reduceat when structured arrays are not copied.
Function test​_reduceat​_empty Reduceat should work with empty arrays
Function test​_rint​_big​_int Undocumented
Function test​_signaling​_nan​_exceptions Undocumented
Function test​_spacing Undocumented
Function test​_spacing​_gfortran Undocumented
Function test​_spacingf Undocumented
Function test​_spacingl Undocumented
avx_ufuncs: dict[str, list] =

Undocumented

glibc_older_than =

Undocumented

glibcver =

Undocumented

def _check_branch_cut(f, x0, dx, re_sign=1, im_sign=-1, sig_zero_ok=False, dtype=complex):

Check for a branch cut in a function.

Assert that x0 lies on a branch cut of function f and f is continuous from the direction dx.

Parameters

f : func
Function to check
x0 : array-like
Point on branch cut
dx : array-like
Direction to check continuity in
re_sign, im_sign : {1, -1}
Change of sign of the real or imaginary part expected
sig_zero_ok : bool
Whether to check if the branch cut respects signed zero (if applicable)
dtype : dtype
Dtype to check (should be complex)
def _signs(dt):

Undocumented

def _test_nextafter(t):

Undocumented

def _test_spacing(t):

Undocumented

def assert_arctan2_isnan(x, y):

Undocumented

def assert_arctan2_isninf(x, y):

Undocumented

def assert_arctan2_isnzero(x, y):

Undocumented

def assert_arctan2_ispinf(x, y):

Undocumented

def assert_arctan2_ispzero(x, y):

Undocumented

def assert_hypot_isinf(x, y):

Undocumented

def assert_hypot_isnan(x, y):

Undocumented

def bad_arcsinh():
The blocklisted trig functions are not accurate on aarch64 for complex256. Rather than dig through the actual problem skip the test. This should be fixed when we can move past glibc2.17 which is the version in manylinux2014
def floor_divide_and_remainder(x, y):

Undocumented

def get_glibc_version():

Undocumented

def on_powerpc():
True if we are running on a Power PC platform.
@pytest.mark.parametrize('x1', [np.arange(3.0), [0.0, 1.0, 2.0]])
def test_bad_legacy_gufunc_silent_errors(x1):

Undocumented

def test_bad_legacy_ufunc_silent_errors():

Undocumented

def test_complex_nan_comparisons():

Undocumented

def test_copysign():

Undocumented

@pytest.mark.parametrize('ftype', [np.float32, np.float64])
def test_memoverlap_accumulate(ftype):

Undocumented

def test_nextafter():

Undocumented

def test_nextafter_0():

Undocumented

def test_nextafter_vs_spacing():

Undocumented

def test_nextafterf():

Undocumented

@pytest.mark.skipif((np.finfo(np.double) == np.finfo(np.longdouble)), reason='long double is same as double')
@pytest.mark.xfail(condition=platform.machine().startswith('ppc64'), reason='IBM double double')
def test_nextafterl():

Undocumented

def test_outer_bad_subclass():

Undocumented

def test_outer_exceeds_maxdims():

Undocumented

@pytest.mark.parametrize('arr', [np.arange(2), np.matrix([0, 1]), np.matrix([[0, 1], [2, 5]])])
def test_outer_subclass_preserve(arr):

Undocumented

def test_pos_nan():
Check np.nan is a positive nan.
def test_reduceat():
Test bug in reduceat when structured arrays are not copied.
def test_reduceat_empty():
Reduceat should work with empty arrays
def test_rint_big_int():

Undocumented

def test_signaling_nan_exceptions():

Undocumented

def test_spacing():

Undocumented

def test_spacing_gfortran():

Undocumented

def test_spacingf():

Undocumented

@pytest.mark.skipif((np.finfo(np.double) == np.finfo(np.longdouble)), reason='long double is same as double')
@pytest.mark.xfail(condition=platform.machine().startswith('ppc64'), reason='IBM double double')
def test_spacingl():

Undocumented