module documentation

Undocumented

Class TestCommaDecimalPointLocale Undocumented
Function test_complex_inf_nan Check inf/nan formatting of complex types.
Function test_complex_type_print Check formatting when using print
Function test_complex_types Check formatting of complex types.
Function test_float_type_print Check formatting when using print
Function test_float_types Check formatting.
Function test_nan_inf_float Check formatting of nan & inf.
Function test_scalar_format Test the str.format method with NumPy scalar types
Function _test_redirected_print Undocumented
Constant _REF Undocumented
@pytest.mark.parametrize('dtype', [np.complex64, np.cdouble, np.clongdouble])
def test_complex_inf_nan(dtype): (source)

Check inf/nan formatting of complex types.

@pytest.mark.parametrize('tp', [np.complex64, np.cdouble, np.clongdouble])
def test_complex_type_print(tp): (source)

Check formatting when using print

@pytest.mark.parametrize('tp', [np.complex64, np.cdouble, np.clongdouble])
def test_complex_types(tp): (source)

Check formatting of complex types.

This is only for the str function, and only for simple types. The precision of np.float32 and np.longdouble aren't the same as the python float precision.

@pytest.mark.parametrize('tp', [np.float32, np.double, np.longdouble])
def test_float_type_print(tp): (source)

Check formatting when using print

@pytest.mark.parametrize('tp', [np.float32, np.double, np.longdouble])
def test_float_types(tp): (source)

Check formatting.

This is only for the str function, and only for simple types. The precision of np.float32 and np.longdouble aren't the same as the python float precision.

@pytest.mark.parametrize('tp', [np.float32, np.double, np.longdouble])
def test_nan_inf_float(tp): (source)

Check formatting of nan & inf.

This is only for the str function, and only for simple types. The precision of np.float32 and np.longdouble aren't the same as the python float precision.

def test_scalar_format(): (source)

Test the str.format method with NumPy scalar types

def _test_redirected_print(x, tp, ref=None): (source)

Undocumented

Undocumented

Value
{np.inf: 'inf', -np.inf: '-inf', np.nan: 'nan'}