num::kernel::trsv_upper¶
Defined in header <kernel/dense.hpp>
template <std::floating_point T>
void trsv_upper(T *x, const T *U, const T *b, idx n) noexcept; // (1)
template <std::floating_point T>
void trsv_upper(contract::alias_safe_t, T *x, const T *U, const T *b, idx n) noexcept; // (2)
(1) Solve an upper triangular system (TRSV): \(x \leftarrow U^{-1} b\). x and b must not alias; see the alias_safe overload.
(2) Solve an upper triangular system, allowing x and b to alias: \(x \leftarrow U^{-1} b\). x and b may alias.