| 63 | /// Simple constexpr maximum element suited for non empty arrays. |
| 64 | template <typename T, std::size_t N> |
| 65 | ARROW_FORCE_INLINE constexpr T max_value(const std::array<T, N>& arr) { |
| 66 | static_assert(N > 0); |
| 67 | T out = 0; |
| 68 | for (const T& v : arr) { |
| 69 | if (v > out) { |
| 70 | out = v; |
| 71 | } |
| 72 | } |
| 73 | return out; |
| 74 | } |
| 75 | |
| 76 | template <std::array kArr, typename Arch, std::size_t... Is> |
| 77 | ARROW_FORCE_INLINE constexpr auto array_to_batch_constant_impl( |
no outgoing calls
no test coverage detected