Template Function wt::solve_linear_system2x2¶ Defined in File linalg.hpp Function Documentation¶ template<FloatingPoint T>inline std::optional<vec<2, T>> wt::solve_linear_system2x2(const mat2<T> &A, const vec2<T> &b) noexcept¶ Solves the linear system Ax=b for given 2x2 matrix A and 2-element vector b. If a solution exists returns x, otherwise returns std::nullopt.