class documentation

class TestSFloat: (source)

View In Hierarchy

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
Method _get_array Undocumented
def test_addition_cast_safety(self): (source)

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

Undocumented

def test_basic_multiply(self): (source)

Undocumented

def test_basic_multiply_promotion(self): (source)

Undocumented

def test_basic_ufunc_at(self): (source)

Undocumented

def test_class_discovery(self): (source)

Undocumented

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

Undocumented

def test_possible_and_impossible_reduce(self): (source)

Undocumented

def test_repr(self): (source)

Undocumented

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

Undocumented

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

Undocumented

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

Undocumented

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

Undocumented

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

Undocumented

def test_sfloat_promotion(self): (source)

Undocumented

def test_sfloat_rescaled(self): (source)

Undocumented

def _get_array(self, scaling, aligned=True): (source)

Undocumented