12namespace stratax::core::compound_detail {
33template<
bool Stage, Array A,
typename Evaluate>
36 const auto count = lhs.size();
39 std::vector<typename A::value_type> results;
40 results.reserve(count);
41 for (std::size_t i = 0; i < count; ++i)
43 results.push_back(
static_cast<typename A::value_type
>(evaluate(i)));
45 for (std::size_t i = 0; i < count; ++i)
52 for (std::size_t i = 0; i < count; ++i)
54 lhs[i] =
static_cast<typename A::value_type
>(evaluate(i));
constexpr bool owns_storage
True for a Stratax container with unique owning element storage.
A & write_results(A &lhs, Evaluate evaluate)
Writes computed values, staging them when storage may overlap.
Dtype and array interface concepts.
Trait identifying supported Stratax owning array specializations.