Initial commit
This commit is contained in:
16
src/mkl.cpp
Normal file
16
src/mkl.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user