Skip to content

num::kernel::hadamard_mul

Defined in header <kernel/vector.hpp>

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

Computes elementwise Hadamard product \(z_i = x_i \cdot y_i\).