10#include <uni20/config.hpp>
21inline std::string lapack_error_message(std::string_view routine, std::string_view reason, blas_int info)
23 return "LAPACK " + std::string(routine) +
" " + std::string(reason) +
" (INFO=" + std::to_string(info) +
")";
37 [[nodiscard]] std::string
const&
routine() const noexcept {
return routine_; }
40 [[nodiscard]] blas_int
info() const noexcept {
return info_; }
43 [[nodiscard]] std::string
const&
reason() const noexcept {
return reason_; }
Base class for exceptions raised through Uni20's diagnostic boundary.
Definition diagnostic_error.hpp:25
Exception carrying a terminal positive LAPACK INFO result.
Definition lapack_error.hpp:28
std::string const & reason() const noexcept
Return Uni20's interpretation of the provider failure.
Definition lapack_error.hpp:43
std::string const & routine() const noexcept
Return the LAPACK routine name without a scalar prefix.
Definition lapack_error.hpp:37
LapackError(std::string routine, blas_int info, std::string reason)
Construct an error from the provider routine, status, and interpreted reason.
Definition lapack_error.hpp:31
blas_int info() const noexcept
Return the positive provider INFO value.
Definition lapack_error.hpp:40
Structured exception base carrying diagnostic source context.
Definition backend/lapack/common.hpp:12