guanaqo main
Utilities for scientific software
Loading...
Searching...
No Matches
blas.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <guanaqo/blas/config.hpp>
4
5#if GUANAQO_WITH_MKL
6#include <mkl.h>
7#else
8#include <cblas.h>
9#endif
10
11#include <type_traits>
12
13namespace guanaqo::blas {
14
15#if defined(MKL_INT)
16using blas_index_t = MKL_INT;
17#elif defined(CBLAS_INT)
18using blas_index_t = CBLAS_INT;
19#else
20using blas_index_t = int;
21#endif
22
23static_assert(std::is_same_v<index_t, blas_index_t>, "Unsupported index type");
24static_assert(std::is_signed_v<index_t>);
25
26} // namespace guanaqo::blas
int blas_index_t
Definition blas.hpp:20