Implemented reduce using "identity_value", with the following requirement from the caller:
binary_op(x, identity_value) == binary_op(identity_value, x) == x, for all x.
Paths
| Differential D41844
[libcxx] implement <experimental/simd> mask reductions Needs ReviewPublic Authored by timshen on Jan 8 2018, 4:46 PM.
Details
Summary Implemented reduce using "identity_value", with the following requirement from the caller: binary_op(x, identity_value) == binary_op(identity_value, x) == x, for all x.
Diff Detail
Event Timelinetimshen added a parent revision: D41843: [libcxx] implement <experimental/simd> where expressions..Jan 8 2018, 4:47 PM
Revision Contents
Diff 139044 libcxx/include/experimental/simd
libcxx/test/std/experimental/simd/simd.horizontal/hmax.pass.cpp
libcxx/test/std/experimental/simd/simd.horizontal/hmin.pass.cpp
libcxx/test/std/experimental/simd/simd.horizontal/reduce.pass.cpp
|
Specified in terms of the transparent plus<>.