Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问在这行代码中的expf()是在哪个头文件包含的呢? #25

Closed
wangqiang9 opened this issue Apr 18, 2023 · 3 comments
Closed

Comments

@wangqiang9
Copy link

wangqiang9 commented Apr 18, 2023

return 1.f / (1 + expf(-value));

请问在这行代码中的 expf 是在哪个头文件包含的呢?

是<math.h>中的吗:https://www.enseignement.polytechnique.fr/informatique/INF478/docs/Cpp/en/c/numeric/math/exp.html
但是我看 sigmoid.cpp/sigmoid.hpp 中并没有 #include <math.h>呀。

跪求大佬解答

@zjhellofss
Copy link
Owner

应该是隐式包含的,armadillo头文件中就包含了cmath

@zjhellofss
Copy link
Owner

image

@wangqiang9
Copy link
Author

应该是隐式包含的,armadillo头文件中就包含了cmath

明白了,谢谢大佬解答!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants