MCPcopy Create free account
hub / github.com/apache/arrow / select_stride_impl

Function select_stride_impl

cpp/src/arrow/util/bpacking_simd_kernel_internal.h:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108template <typename Int, int kOffset, int kLength, typename Arr>
109ARROW_FORCE_INLINE constexpr auto select_stride_impl(Arr shifts) {
110 std::array<Int, shifts.size() / kLength> out{};
111 for (std::size_t i = 0; i < out.size(); ++i) {
112 out[i] = shifts[kLength * i + kOffset];
113 }
114 return out;
115}
116
117/// Select indices in a batch constant according to a given stride.
118///

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected