25namespace shamrock::solvergraph {
29 auto edges = get_edges();
31 edges.spans_x.check_sizes(edges.sizes.indexes);
32 edges.spans_y.ensure_sizes(edges.sizes.indexes);
35 = edges.sizes.indexes.template map<u32>([&](
u64 id,
u32 obj_cnt) {
36 return obj_cnt * nvar;
40 shamsys::instance::get_compute_scheduler_ptr(),
44 [](
u32 i,
const T *__restrict x, T *__restrict y) {
51 std::string tex = R
"tex(
52 Overwrite a field with another one
54 {spans_y}_i = {spans_x}_i
58 replace_edges_tex_symbols(tex);
Header file describing a Node Instance.
Node copying a field into another one (y <- x).
std::uint32_t u32
32 bit unsigned integer
std::uint64_t u64
64 bit unsigned integer
Represents a collection of objects distributed across patches identified by a u64 id.
Copy x into y on every value of every patch.
virtual std::string _impl_get_tex() const
get the tex of the node
void _impl_evaluate_internal()
evaluate the node
void distributed_data_kernel_call(sham::DeviceScheduler_ptr dev_sched, RefIn in, RefOut in_out, const shambase::DistributedData< index_t > &thread_counts, Functor &&func)
A variant of sham::kernel_call for distributed data.
A variant of sham::MultiRef for distributed data.