Add Taylor expansion to LookupXSIMD (#23)
Co-authored-by: Wiebe van Breukelen <breukelen@astron.nl> Co-authored-by: mancini <mancini@astron.nl>
This commit is contained in:
@@ -4,16 +4,16 @@
|
||||
#include "test_utils.hpp"
|
||||
|
||||
TEST_CASE("sincosf") {
|
||||
test_sincosf<LookupXSIMDBackend<16384>>(1e-2f);
|
||||
test_sincosf<LookupXSIMDBackend<32768>>(1e-2f);
|
||||
test_sincosf<LookupXSIMDBackend<16384>>(1e-6f);
|
||||
test_sincosf<LookupXSIMDBackend<32768>>(1e-6f);
|
||||
}
|
||||
|
||||
TEST_CASE("sinf") {
|
||||
test_sinf<LookupXSIMDBackend<16384>>(1e-2f);
|
||||
test_sinf<LookupXSIMDBackend<32768>>(1e-2f);
|
||||
test_sinf<LookupXSIMDBackend<16384>>(1e-6f);
|
||||
test_sinf<LookupXSIMDBackend<32768>>(1e-6f);
|
||||
}
|
||||
|
||||
TEST_CASE("cosf") {
|
||||
test_cosf<LookupXSIMDBackend<16384>>(1e-2f);
|
||||
test_cosf<LookupXSIMDBackend<32768>>(1e-2f);
|
||||
test_cosf<LookupXSIMDBackend<16384>>(1e-6f);
|
||||
test_cosf<LookupXSIMDBackend<32768>>(1e-6f);
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <catch2/matchers/catch_matchers_floating_point.hpp>
|
||||
#include <trigdx/reference.hpp>
|
||||
|
||||
const size_t N = 1e7;
|
||||
const size_t N = 1234;
|
||||
|
||||
void init_x(std::vector<float> &x) {
|
||||
for (size_t i = 0; i < x.size(); ++i) {
|
||||
|
||||
Reference in New Issue
Block a user