|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
Concept for an operator that provides its own fused scaled-apply: y := alpha * op(x) + beta * y. Backend::apply(alpha, op, x, beta, y) dispatches here when available, and falls back to a plain apply-then-axpby otherwise – so an operator need not implement this to be used with a scaled apply, but gets a faster fused path when it does (e.g. to skip recomputing an expensive per-element coefficient when alpha == 0).
#include <solver_backends.hpp>