Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
blas_int.hpp File Reference

Safe conversion helpers for the configured signed BLAS integer ABI. More...

#include <uni20/config.hpp>
#include <concepts>
#include <cstddef>
#include <stdexcept>
#include <type_traits>
#include <utility>
Include dependency graph for blas_int.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  uni20
 
namespace  uni20::blas
 

Functions

blas_int uni20::blas::checked_blas_int (std::size_t value)
 Convert a dense dimension to blas_int or throw on overflow.
 
constexpr bool uni20::blas::is_valid_blas_int (blas_int value) noexcept
 Return whether a non-throwing BLAS integer conversion succeeded.
 
template<std::integral Value>
constexpr blas_int uni20::blas::try_blas_int (Value value) noexcept
 Convert a non-negative integer to blas_int, or return the negative invalid sentinel.
 

Variables

constexpr blas_int uni20::blas::invalid_blas_int = blas_int{-1}
 

Detailed Description

Safe conversion helpers for the configured signed BLAS integer ABI.