diff options
author | Developer-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com> | 2022-08-23 12:39:37 -0700 |
---|---|---|
committer | Developer-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com> | 2022-11-28 14:26:57 -0800 |
commit | 490b1e45ce16ca91d1c6a1e644f844179b5410eb (patch) | |
tree | 62431d5014b6cc2d9f16da296265ca1339986158 /numpy/array_api/tests/test_asarray.py | |
parent | 7f0f045625022c3f816911cd80f8635ac2a36f21 (diff) | |
download | numpy-490b1e45ce16ca91d1c6a1e644f844179b5410eb.tar.gz |
ENH: Add SIMD versions of negative
NumPy already has SSE2 versions of `negative`. Changes here convert that to universal intrinsics so other architectures can benefit. Previously there was no unroll and SIMD was only used in contiguous cases. We're now unrolling 4x/2x depending on whether destination is contiguous. x86 doesn't perform as well for non-contiguous cases here, so we leave previous implementation / fall back to scalar. Additionally, we've added SIMD versions for ints.
Diffstat (limited to 'numpy/array_api/tests/test_asarray.py')
0 files changed, 0 insertions, 0 deletions