Skip to content

num::kernel::inv

Defined in header <kernel/vector.hpp>

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

Take the reciprocal of each entry: \(y_i \leftarrow 1 / x_i\).