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;

Add two vectors: \(z \leftarrow x + y\).