-
Notifications
You must be signed in to change notification settings - Fork 407
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
complex(math) : log10 support #5009
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can one of the admins verify this patch? |
dalg24
reviewed
May 10, 2022
dalg24
reviewed
May 10, 2022
romintomasetti
force-pushed
the
complex-log10
branch
from
May 10, 2022 14:10
78daa99
to
d288e42
Compare
romintomasetti
commented
May 10, 2022
Closed
2 tasks
nliber
requested changes
May 10, 2022
romintomasetti
force-pushed
the
complex-log10
branch
from
May 11, 2022 07:02
d288e42
to
a6fbe0b
Compare
dalg24
approved these changes
May 11, 2022
Test this please |
nliber
approved these changes
May 11, 2022
Would you please fix the format diff --git a/core/src/Kokkos_Complex.hpp b/core/src/Kokkos_Complex.hpp
index 63d144171..9c0387e1d 100644
--- a/core/src/Kokkos_Complex.hpp
+++ b/core/src/Kokkos_Complex.hpp
@@ -786,7 +786,7 @@ KOKKOS_INLINE_FUNCTION Kokkos::complex<RealType> log(
}
//! base 10 log of a complex number.
-template<typename RealType>
+template <typename RealType>
KOKKOS_INLINE_FUNCTION Kokkos::complex<RealType> log10(
const complex<RealType>& x) {
return log(x) / log(RealType(10)); |
romintomasetti
force-pushed
the
complex-log10
branch
from
May 12, 2022 06:37
a6fbe0b
to
9fcdb46
Compare
Done, thanks ! I also used |
masterleinad
approved these changes
May 12, 2022
OK to test |
Retest this please |
2 similar comments
Retest this please |
Retest this please |
Retest this please... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds
log10
support forKokkos::complex
type.This PR targets #3877.
It also comes with the accompanying test in
core/unit_test/TestComplex.hpp
.