class documentation

class TestSFloat:

View In Hierarchy

Undocumented

Method ​_get​_array Undocumented
Method test​_addition​_cast​_safety The addition method is special for the scaled float, because it includes the "cast" between different factors, thus cast-safety is influenced by the implementation.
Method test​_basic​_addition Undocumented
Method test​_basic​_multiply Undocumented
Method test​_basic​_multiply​_promotion Undocumented
Method test​_basic​_ufunc​_at Undocumented
Method test​_class​_discovery Undocumented
Method test​_logical​_ufuncs​_casts​_to​_bool Undocumented
Method test​_possible​_and​_impossible​_reduce Undocumented
Method test​_repr Undocumented
Method test​_scaled​_float​_from​_floats Undocumented
Method test​_sfloat​_cast​_internal​_errors Undocumented
Method test​_sfloat​_casts Undocumented
Method test​_sfloat​_from​_float Undocumented
Method test​_sfloat​_getitem Undocumented
Method test​_sfloat​_promotion Undocumented
Method test​_sfloat​_rescaled Undocumented
def _get_array(self, scaling, aligned=True):

Undocumented

def test_addition_cast_safety(self):
The addition method is special for the scaled float, because it includes the "cast" between different factors, thus cast-safety is influenced by the implementation.
def test_basic_addition(self):

Undocumented

def test_basic_multiply(self):

Undocumented

def test_basic_multiply_promotion(self):

Undocumented

def test_basic_ufunc_at(self):

Undocumented

def test_class_discovery(self):

Undocumented

@pytest.mark.parametrize('ufunc', [np.logical_and, np.logical_or, np.logical_xor])
def test_logical_ufuncs_casts_to_bool(self, ufunc):

Undocumented

def test_possible_and_impossible_reduce(self):

Undocumented

def test_repr(self):

Undocumented

@pytest.mark.parametrize('scaling', [1.0, -1.0, 2.0])
def test_scaled_float_from_floats(self, scaling):

Undocumented

@pytest.mark.parametrize('aligned', [True, False])
def test_sfloat_cast_internal_errors(self, aligned):

Undocumented

@pytest.mark.parametrize('aligned', [True, False])
def test_sfloat_casts(self, aligned):

Undocumented

@pytest.mark.parametrize('scaling', [1.0, -1.0, 2.0])
def test_sfloat_from_float(self, scaling):

Undocumented

@pytest.mark.parametrize('aligned', [True, False])
@pytest.mark.parametrize('scaling', [1.0, -1.0, 2.0])
def test_sfloat_getitem(self, aligned, scaling):

Undocumented

def test_sfloat_promotion(self):

Undocumented

def test_sfloat_rescaled(self):

Undocumented