class documentation
class _SIMD_ALL(_Test_Utility): (source)
To test all vector types at once
Method | test |
Undocumented |
Method | test |
npyv_divisor_##sfx npyv_divc_##sfx |
Method | test |
Undocumented |
Method | test |
npyv_sum_##sfx |
Method | test |
npyv_sumup_##sfx |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
npyv_expand_u16_u8 npyv_expand_u32_u16 |
Method | test |
npyv_lut32_##sfx npyv_lut16_##sfx |
Method | test |
Conditional addition and subtraction for all supported data types. Test intrinsics: |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
npyv_any_##SFX npyv_all_##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( 'intrin, table_size, elsize', [ ( 'self.lut32', 32, 32), ( 'self.lut16', 16, 64)])
def test_lut(self, intrin, table_size, elsize): (source) ¶
def test_lut(self, intrin, table_size, elsize): (source) ¶
- Test lookup table intrinsics:
- npyv_lut32_##sfx npyv_lut16_##sfx
Conditional addition and subtraction for all supported data types. Test intrinsics:
npyv_ifadd_##SFX, npyv_ifsub_##SFX
@pytest.mark.parametrize( 'func, intrin', [ ( operator.lt, 'cmplt'), ( operator.le, 'cmple'), ( operator.gt, 'cmpgt'), ( operator.ge, 'cmpge'), ( operator.eq, 'cmpeq')])
def test_operators_comparison(self, func, intrin): (source) ¶
def test_operators_comparison(self, func, intrin): (source) ¶
Undocumented
@pytest.mark.parametrize( 'intrin', [ 'any', 'all'])
@pytest.mark.parametrize( 'data', ( [ 1, 2, 3, 4], [ -1, -2, -3, -4], [ 0, 1, 2, 3, 4], [ 127, 32767, 2147483647, 9223372036854775807], [ 0, -1, -2, -3, 4], [ 0], [ 1], [ -1]))
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