TODO: first changes to add expf

This commit is contained in:
Bram Veenboer
2025-09-01 15:51:50 +02:00
parent 9d3af8c202
commit d7a7af5de9
11 changed files with 76 additions and 1 deletions

View File

@@ -21,3 +21,9 @@ void ReferenceBackend::compute_sincosf(size_t n, const float *x, float *s,
c[i] = cosf(x[i]);
}
}
void ReferenceBackend::compute_expf(size_t n, const float *x, float *e) const {
for (size_t i = 0; i < n; ++i) {
e[i] = expf(x[i]);
}
}