77 for (
idx i = 0; i < n; ++i) {
87 for (
idx i = 0; i < n; ++i) {
101template<
typename T,
typename F>
105 for (
idx i = 0; i < n; ++i) {
106 z[i] = f(x[i], y[i]);
121 for (
idx i = 0; i < n; ++i) {
constexpr idx size() const noexcept
Compile-time dispatch policy tags for the kernel module.
void zip_map(const BasicVector< T > &x, const BasicVector< T > &y, BasicVector< T > &z, F &&f)
Fused binary map: z[i] = f(x[i], y[i])
void axpby(real a, const Vector &x, real b, Vector &y, seq_t) noexcept
Sequential: y[i] = a*x[i] + b*y[i] (single-pass; calls raw::axpby)
void axpbyz(real a, const Vector &x, real b, const Vector &y, Vector &z, seq_t) noexcept
Sequential: z[i] = a*x[i] + b*y[i] (single-pass; calls raw::axpbyz)
void map(Vector &x, F &&f)
In-place elementwise map: x[i] = f(x[i])
real reduce(const Vector &x, real init, F &&f)
Single-pass left fold: f(f(f(init, x[0]), x[1]), ..., x[n-1])
std::complex< real > cplx
Parallel execution policy tag. Activates OMP parallel-for / reduction constructs when NUMERICS_HAS_OM...
Sequential execution policy tag. Guarantees no OMP parallel regions; safe to call inside an existing ...