module documentation

Undocumented

Class ​Test​Comma​Decimal​Point​Locale Undocumented
Function ​_test​_redirected​_print 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
Constant ​_REF Undocumented
def _test_redirected_print(x, tp, ref=None):

Undocumented

@pytest.mark.parametrize('dtype', [np.complex64, np.cdouble, np.clongdouble])
def test_complex_inf_nan(dtype):
Check inf/nan formatting of complex types.
@pytest.mark.parametrize('tp', [np.complex64, np.cdouble, np.clongdouble])
def test_complex_type_print(tp):
Check formatting when using print
@pytest.mark.parametrize('tp', [np.complex64, np.cdouble, np.clongdouble])
def test_complex_types(tp):

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):
Check formatting when using print
@pytest.mark.parametrize('tp', [np.float32, np.double, np.longdouble])
def test_float_types(tp):

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

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():
Test the str.format method with NumPy scalar types
_REF =

Undocumented

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