MCPcopy Create free account
hub / github.com/NVIDIA/cutlass / fold

Function fold

include/cute/algorithm/tuple_algorithms.hpp:387–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385
386template <class T, class V, class F, int... Is>
387CUTE_HOST_DEVICE constexpr
388auto
389fold(T&& t, V const& v, F&& f, seq<Is...>)
390{
391 return (FoldAdaptor<F,V>{f,v} | ... | get<Is>(static_cast<T&&>(t))).val_;
392}
393
394} // end namespace detail
395

Callers 15

composition_implFunction · 0.85
complementFunction · 0.85
right_inverseFunction · 0.85
left_inverseFunction · 0.85
domain_distributeFunction · 0.85
nullspaceFunction · 0.85
recastFunction · 0.85
ceil_divFunction · 0.85
shape_divFunction · 0.85
fill_int_tuple_fromFunction · 0.85
nullspaceFunction · 0.85
compactFunction · 0.85

Calls 1

fFunction · 0.50

Tested by

no test coverage detected