MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / TEST

Function TEST

src/opr/test/loop/taylor.cpp:185–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183// fails in msvc without function pointer
184typedef float (*math_fp)(float);
185TEST(TestOprLoop, TaylorSin) {
186 math_fp s = std::sin, c = std::cos;
187 test_taylor(sin_by_taylor, s, c);
188}
189
190TEST(TestOprLoop, TaylorExp) {
191 math_fp e = std::exp;

Callers

nothing calls this directly

Calls 15

test_taylorFunction · 0.85
test_two_var_coupledFunction · 0.85
make_callback_copyFunction · 0.85
gradFunction · 0.85
renameMethod · 0.80
get_counter_varMethod · 0.80
expFunction · 0.50
sinFunction · 0.50
makeFunction · 0.50
genFunction · 0.50
cosFunction · 0.50
add_inputMethod · 0.45

Tested by

no test coverage detected