9#include <uni20/config.hpp>
20static_assert(std::is_signed_v<blas_int>,
"BLAS/LAPACK integer ABI type must be signed");
30 if (!std::in_range<blas_int>(
value))
35 auto const converted =
static_cast<blas_int
>(
value);
45 throw std::overflow_error(
"dense dimension does not fit BLAS integer type");
locale_t value
Definition data_table.cpp:49
Definition blas_int.hpp:18
constexpr blas_int try_blas_int(Value value) noexcept
Convert a non-negative integer to blas_int, or return the negative invalid sentinel.
Definition blas_int.hpp:28
constexpr blas_int invalid_blas_int
Definition blas_int.hpp:22
constexpr bool is_valid_blas_int(blas_int value) noexcept
Return whether a non-throwing BLAS integer conversion succeeded.
Definition blas_int.hpp:25
blas_int checked_blas_int(std::size_t value)
Convert a dense dimension to blas_int or throw on overflow.
Definition blas_int.hpp:40