Skip to content

num::lu_diagonal_shift_derivative

Defined in header <linear/factorization/lu.hpp>

template <std::floating_point T>
mat<T> lu_diagonal_shift_derivative(const lu_result<T> &f);

Differentiate the LU factors with respect to a diagonal shift at \(s = 0\), for \(A + s I = L_s U_s\). Packed like lu_result.

Exceptions

  • std::invalid_argument: If f is singular or pivoted.