class documentation

To test all float vector types at once

Method test_abs Undocumented
Method test_arithmetic_fused Undocumented
Method test_comparison_with_nan Undocumented
Method test_max_min npyv_max_##sfx npyv_maxp_##sfx npyv_maxn_##sfx npyv_min_##sfx npyv_minp_##sfx npyv_minn_##sfx npyv_reduce_max_##sfx npyv_reduce_maxp_##sfx npyv_reduce_maxn_##sfx npyv_reduce_min_##sfx npyv_reduce_minp_##sfx npyv_reduce_minn_##sfx...
Method test_operators_crosstest npyv_any_##SFX npyv_all_##SFX
Method test_reciprocal Undocumented
Method test_rounding npyv_rint_##SFX npyv_ceil_##SFX npyv_trunc_##SFX npyv_floor##SFX
Method test_special_cases npyv_notnan_##SFX
Method test_sqrt Undocumented
Method test_square Undocumented
Method test_unary_invalid_fpexception Undocumented

Inherited from _Test_Utility:

Method __getattr__ To call NPV intrinsics without the attribute 'npyv' and auto suffixing intrinsics according to class attribute 'sfx'
Class Variable npyv Undocumented
Class Variable sfx Undocumented
Class Variable target_name Undocumented
Method _cpu_features Undocumented
Method _data Create list of consecutive numbers according to number of vector's lanes.
Method _int_clip Undocumented
Method _int_max Undocumented
Method _int_min Undocumented
Method _is_fp Undocumented
Method _is_signed Undocumented
Method _is_unsigned Undocumented
Method _nan Undocumented
Method _ninfinity Undocumented
Method _pinfinity Undocumented
Method _scalar_size Undocumented
Method _to_unsigned Undocumented
Method _true_mask Undocumented
def test_abs(self): (source)

Undocumented

def test_arithmetic_fused(self): (source)

Undocumented

@pytest.mark.parametrize('py_comp,np_comp', [(operator.lt, 'cmplt'), (operator.le, 'cmple'), (operator.gt, 'cmpgt'), (operator.ge, 'cmpge'), (operator.eq, 'cmpeq'), (operator.ne, 'cmpneq')])
def test_comparison_with_nan(self, py_comp, np_comp): (source)

Undocumented

@pytest.mark.parametrize('intrin', ['max', 'maxp', 'maxn', 'min', 'minp', 'minn'])
def test_max_min(self, intrin): (source)

Test intrinsics:
npyv_max_##sfx npyv_maxp_##sfx npyv_maxn_##sfx npyv_min_##sfx npyv_minp_##sfx npyv_minn_##sfx npyv_reduce_max_##sfx npyv_reduce_maxp_##sfx npyv_reduce_maxn_##sfx npyv_reduce_min_##sfx npyv_reduce_minp_##sfx npyv_reduce_minn_##sfx

@pytest.mark.parametrize('intrin', ['any', 'all'])
@pytest.mark.parametrize('data', ([float('nan'), 0], [0, float('nan')], [float('nan'), 1], [1, float('nan')], [float('nan'), float('nan')], [0.0, -0.0], [-0.0, 0.0], [1.0, -0.0]))
def test_operators_crosstest(self, intrin, data): (source)

Test intrinsics:
npyv_any_##SFX npyv_all_##SFX

def test_reciprocal(self): (source)

Undocumented

@pytest.mark.parametrize('intrin, func', [('ceil', math.ceil), ('trunc', math.trunc), ('floor', math.floor), ('rint', round)])
def test_rounding(self, intrin, func): (source)

Test intrinsics:
npyv_rint_##SFX npyv_ceil_##SFX npyv_trunc_##SFX npyv_floor##SFX

def test_special_cases(self): (source)

Compare Not NaN. Test intrinsics:
npyv_notnan_##SFX

def test_sqrt(self): (source)

Undocumented

def test_square(self): (source)

Undocumented

@pytest.mark.parametrize('intrin_name', ['rint', 'trunc', 'ceil', 'floor'])
def test_unary_invalid_fpexception(self, intrin_name): (source)

Undocumented