class documentation

To test all vector types at once

Method test_arithmetic_div Undocumented
Method test_arithmetic_intdiv npyv_divisor_##sfx npyv_divc_##sfx
Method test_arithmetic_mul Undocumented
Method test_arithmetic_reduce_sum npyv_sum_##sfx
Method test_arithmetic_reduce_sumup npyv_sumup_##sfx
Method test_arithmetic_subadd Undocumented
Method test_conversion_boolean Undocumented
Method test_conversion_expand npyv_expand_u16_u8 npyv_expand_u32_u16
Method test_lut npyv_lut32_##sfx npyv_lut16_##sfx
Method test_mask_conditional Conditional addition and subtraction for all supported data types. Test intrinsics:
Method test_memory_load Undocumented
Method test_memory_noncont_load Undocumented
Method test_memory_noncont_partial_load Undocumented
Method test_memory_noncont_partial_store Undocumented
Method test_memory_noncont_store Undocumented
Method test_memory_partial_load Undocumented
Method test_memory_partial_store Undocumented
Method test_memory_store Undocumented
Method test_misc Undocumented
Method test_operators_comparison Undocumented
Method test_operators_crosstest npyv_any_##SFX npyv_all_##SFX
Method test_operators_logical Undocumented
Method test_reorder Undocumented
Method test_reorder_rev64 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_arithmetic_div(self): (source)

Undocumented

def test_arithmetic_intdiv(self): (source)

Test integer division intrinsics:
npyv_divisor_##sfx npyv_divc_##sfx

def test_arithmetic_mul(self): (source)

Undocumented

def test_arithmetic_reduce_sum(self): (source)

Test reduce sum intrinsics:
npyv_sum_##sfx

def test_arithmetic_reduce_sumup(self): (source)

Test extend reduce sum intrinsics:
npyv_sumup_##sfx

def test_arithmetic_subadd(self): (source)

Undocumented

def test_conversion_boolean(self): (source)

Undocumented

def test_conversion_expand(self): (source)

Test expand intrinsics:
npyv_expand_u16_u8 npyv_expand_u32_u16

@pytest.mark.parametrize('intrin, table_size, elsize', [('self.lut32', 32, 32), ('self.lut16', 16, 64)])
def test_lut(self, intrin, table_size, elsize): (source)

Test lookup table intrinsics:
npyv_lut32_##sfx npyv_lut16_##sfx

def test_mask_conditional(self): (source)

Conditional addition and subtraction for all supported data types. Test intrinsics:

npyv_ifadd_##SFX, npyv_ifsub_##SFX
def test_memory_load(self): (source)

Undocumented

def test_memory_noncont_load(self): (source)

Undocumented

def test_memory_noncont_partial_load(self): (source)

Undocumented

def test_memory_noncont_partial_store(self): (source)

Undocumented

def test_memory_noncont_store(self): (source)

Undocumented

def test_memory_partial_load(self): (source)

Undocumented

def test_memory_partial_store(self): (source)

Undocumented

def test_memory_store(self): (source)

Undocumented

def test_misc(self): (source)

Undocumented

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

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)

Test intrinsics:
npyv_any_##SFX npyv_all_##SFX

def test_operators_logical(self): (source)

Undocumented

def test_reorder(self): (source)

Undocumented

def test_reorder_rev64(self): (source)

Undocumented