class documentation
class _SIMD_FP(_Test_Utility): (source)
To test all float vector types at once
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
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 |
npyv_any_##SFX npyv_all_##SFX |
Method | test |
Undocumented |
Method | test |
npyv_rint_##SFX npyv_ceil_##SFX npyv_trunc_##SFX npyv_floor##SFX |
Method | test |
npyv_notnan_##SFX |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
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 |
Undocumented |
Method | _cpu |
Undocumented |
Method | _data |
Create list of consecutive numbers according to number of vector's lanes. |
Method | _int |
Undocumented |
Method | _int |
Undocumented |
Method | _int |
Undocumented |
Method | _is |
Undocumented |
Method | _is |
Undocumented |
Method | _is |
Undocumented |
Method | _nan |
Undocumented |
Method | _ninfinity |
Undocumented |
Method | _pinfinity |
Undocumented |
Method | _scalar |
Undocumented |
Method | _to |
Undocumented |
Method | _true |
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) ¶
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) ¶
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) ¶
@pytest.mark.parametrize(
def test_operators_crosstest(self, intrin, data): (source) ¶
- Test intrinsics:
- npyv_any_##SFX npyv_all_##SFX
@pytest.mark.parametrize( 'intrin, func', [ ( 'ceil', math.ceil), ( 'trunc', math.trunc), ( 'floor', math.floor), ( 'rint', round)])
def test_rounding(self, intrin, func): (source) ¶
def test_rounding(self, intrin, func): (source) ¶
- Test intrinsics:
- npyv_rint_##SFX npyv_ceil_##SFX npyv_trunc_##SFX npyv_floor##SFX