diff options
author | Qiyu8 <fangchunlin@huawei.com> | 2020-12-23 17:07:53 +0800 |
---|---|---|
committer | Qiyu8 <fangchunlin@huawei.com> | 2020-12-23 17:07:53 +0800 |
commit | b3681b6af3be4220a6f380c0f34f63f77aaf4b07 (patch) | |
tree | fe80b510a7283f13b107b72ca5f448127d775271 | |
parent | 64439512f992f2388cecb559ac18d82014a214ac (diff) | |
download | numpy-b3681b6af3be4220a6f380c0f34f63f77aaf4b07.tar.gz |
Add docstrings to indicate which intrinsics are tested.
-rw-r--r-- | numpy/core/tests/test_simd.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/numpy/core/tests/test_simd.py b/numpy/core/tests/test_simd.py index 825e61298..71356f812 100644 --- a/numpy/core/tests/test_simd.py +++ b/numpy/core/tests/test_simd.py @@ -664,6 +664,11 @@ class _SIMD_ALL(_Test_Utility): assert false_vsfx != true_vsfx def test_conversion_expand(self): + """ + Test expand intrinics: + npyv_expand_u16_u8 + npyv_expand_u32_u16 + """ if self.sfx not in ("u8", "u16"): return totype = self.sfx[0]+str(int(self.sfx[1:])*2) @@ -722,6 +727,12 @@ class _SIMD_ALL(_Test_Utility): assert div == data_div def test_arithmetic_reduce_sum(self): + """ + Test reduce sum intrinics: + npyv_sum_u32 + npyv_sum_f32 + npyv_sum_f64 + """ if self.sfx not in ("u32", "f32", "f64"): return # reduce sum |