mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-15 21:26:00 +08:00
Fix compilation with MSVC by using our portable numext::log1p implementation.
This commit is contained in:
parent
2d5731e40a
commit
d937a420a2
@ -392,7 +392,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log(const half& a) {
|
|||||||
return half(::logf(float(a)));
|
return half(::logf(float(a)));
|
||||||
}
|
}
|
||||||
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log1p(const half& a) {
|
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log1p(const half& a) {
|
||||||
return half(::log1pf(float(a)));
|
return half(numext::log1p(float(a)));
|
||||||
}
|
}
|
||||||
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log10(const half& a) {
|
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log10(const half& a) {
|
||||||
return half(::log10f(float(a)));
|
return half(::log10f(float(a)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user