Commit 389bc830 authored by Paul's avatar Paul
Browse files

Format

parent 6c811ca5
...@@ -50,7 +50,8 @@ namespace migraphx { ...@@ -50,7 +50,8 @@ namespace migraphx {
friend constexpr auto operator binary_op(const array& x, const array<U, N>& y) \ friend constexpr auto operator binary_op(const array& x, const array<U, N>& y) \
{ \ { \
array<decltype(T {} binary_op U{}), N> z{}; \ array<decltype(T {} binary_op U{}), N> z{}; \
array_detail::array_for_each(z, x, y)([&](auto& sz, auto sx, auto sy) { sz = sx binary_op sy; }); \ array_detail::array_for_each(z, x, y)( \
[&](auto& sz, auto sx, auto sy) { sz = sx binary_op sy; }); \
return z; \ return z; \
} \ } \
template <class U, MIGRAPHX_REQUIRES(is_convertible<U, T>{})> \ template <class U, MIGRAPHX_REQUIRES(is_convertible<U, T>{})> \
...@@ -117,7 +118,6 @@ constexpr auto array_for_each(T& x, Ts&... xs) ...@@ -117,7 +118,6 @@ constexpr auto array_for_each(T& x, Ts&... xs)
} }
} // namespace array_detail } // namespace array_detail
template <class T, index_int N> template <class T, index_int N>
struct array struct array
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment