class documentation

class TestDivision:

View In Hierarchy

Undocumented

Method test​_division​_complex Undocumented
Method test​_division​_int Undocumented
Method test​_division​_int​_boundary Undocumented
Method test​_division​_int​_reduce Undocumented
Method test​_division​_int​_timedelta Undocumented
Method test​_floor​_division​_complex Undocumented
Method test​_floor​_division​_corner​_cases Undocumented
Method test​_floor​_division​_errors Undocumented
Method test​_floor​_division​_signed​_zero Undocumented
Method test​_zero​_division​_complex Undocumented
def test_division_complex(self):

Undocumented

def test_division_int(self):

Undocumented

@pytest.mark.parametrize('dtype,ex_val', itertools.product(np.sctypes['int']+np.sctypes['uint'], ('np.arange(fo.max-lsize, fo.max, dtype=dtype),np.arange(lsize, dtype=dtype),range(15)', 'np.arange(fo.min, fo.min+lsize, dtype=dtype),np.arange(lsize//-2, lsize//2, dtype=dtype),range(fo.min, fo.min + 15)', 'np.arange(fo.max-lsize, fo.max, dtype=dtype),np.arange(lsize, dtype=dtype),[1,3,9,13,neg, fo.min+1, fo.min//2, fo.max//3, fo.max//4]')))
def test_division_int_boundary(self, dtype, ex_val):

Undocumented

@pytest.mark.parametrize('dtype,ex_val', itertools.product(np.sctypes['int']+np.sctypes['uint'], ('np.array([fo.max, 1, 2, 1, 1, 2, 3], dtype=dtype)', 'np.array([fo.min, 1, -2, 1, 1, 2, -3], dtype=dtype)', 'np.arange(fo.min, fo.min+(100*10), 10, dtype=dtype)', 'np.arange(fo.max-(100*7), fo.max, 7, dtype=dtype)')))
def test_division_int_reduce(self, dtype, ex_val):

Undocumented

@pytest.mark.parametrize('dividend,divisor,quotient', [(np.timedelta64(2, 'Y'), np.timedelta64(2, 'M'), 12), (np.timedelta64(2, 'Y'), np.timedelta64(-2, 'M'), -12), (np.timedelta64(-2, 'Y'), np.timedelta64(2, 'M'), -12), (np.timedelta64(-2, 'Y'), np.timedelta64(-2, 'M'), 12), (np.timedelta64(2, 'M'), np.timedelta64(-2, 'Y'), -1), (np.timedelta64(2, 'Y'), np.timedelta64(0, 'M'), 0), (np.timedelta64(2, 'Y'), 2, np.timedelta64(1, 'Y')), (np.timedelta64(2, 'Y'), -2, np.timedelta64(-1, 'Y')), (np.timedelta64(-2, 'Y'), 2, np.timedelta64(-1, 'Y')), (np.timedelta64(-2, 'Y'), -2, np.timedelta64(1, 'Y')), (np.timedelta64(-2, 'Y'), -2, np.timedelta64(1, 'Y')), (np.timedelta64(-2, 'Y'), -3, np.timedelta64(0, 'Y')), (np.timedelta64(-2, 'Y'), 0, np.timedelta64('Nat', 'Y'))])
def test_division_int_timedelta(self, dividend, divisor, quotient):

Undocumented

def test_floor_division_complex(self):

Undocumented

@pytest.mark.parametrize('dtype', np.typecodes['Float'])
def test_floor_division_corner_cases(self, dtype):

Undocumented

@pytest.mark.parametrize('dtype', np.typecodes['Float'])
def test_floor_division_errors(self, dtype):

Undocumented

def test_floor_division_signed_zero(self):

Undocumented

def test_zero_division_complex(self):

Undocumented