Files
trigdx/src/mkl.cpp
Bram Veenboer a189a80cc2 Initial commit
2025-08-01 14:59:27 +02:00

17 lines
478 B
C++

#include <mkl_vml.h>
#include "trigdx/mkl.hpp"
void MKLBackend::compute_sinf(size_t n, const float *x, float *s) const {
vmsSin(static_cast<MKL_INT>(n), x, s, VML_HA);
}
void MKLBackend::compute_cosf(size_t n, const float *x, float *c) const {
vmsCos(static_cast<MKL_INT>(n), x, c, VML_HA);
}
void MKLBackend::compute_sincosf(size_t n, const float *x, float *s,
float *c) const {
vmsSinCos(static_cast<MKL_INT>(n), x, s, c, VML_HA);
}