Skip to content

num::kernel::add

Defined in header <kernel/vector.hpp>

template <std::floating_point T>
void add(T *z, const T *x, const T *y, idx n) noexcept;

Computes elementwise vector sum \(z_i = x_i + y_i\).