
Elementwise map. fn is an R function over scalars/arrays; it will be composed with neighbouring fusable nodes and wrapped in anvl::jit() at plan time. Created by lazy_map().
MapNode.RdElementwise map. fn is an R function over scalars/arrays; it will be
composed with neighbouring fusable nodes and wrapped in anvl::jit()
at plan time. Created by lazy_map().
Arguments
- id
Integer node id (assigned by
graph_add()).- parents
Integer ids of parent nodes (may be empty).
- grid
Output
GridSpecof this node.- role
Optional semantic role tag (e.g. "mask", set by
mask()). Pure metadata: never read by the planner or executors; surfaced bydraw()andplan_view().- fn
Elementwise R function.