-
-
Notifications
You must be signed in to change notification settings - Fork 211
Feature/0123 complex funs #1774
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
Merged
Merged
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
c00158f
exp, copysign, complex test extensions
f715f51
i_times and related
b83e006
Merge branch 'develop' of https://github.com/stan-dev/math into featu…
d64babe
complex binary operator+ and operator-
4b07ef7
complex operator/ and operator*
a4ee58a
complex unary operator+ and operator-
e010c0c
complex operator== and operator!=
46e822a
complex imag and real functions
3148153
asinh, but won't pass until log etc in
472641c
complex abs
159ac31
complex arg function
b01f01f
Merge branch 'develop' of https://github.com/stan-dev/math into featu…
bob-carpenter 15de802
complex norm and arg
bob-carpenter 313f8c9
complex conj
bob-carpenter b2ff01a
complex proj
bob-carpenter 7298cd6
complex exp
bob-carpenter aa4c2cd
complex sqrt
bob-carpenter a17575e
complex log
bob-carpenter 3118b03
complex log10
bob-carpenter 6195984
complex pow
bob-carpenter 04f0606
complex sinh
bob-carpenter f4e6fd7
Merge branch 'develop' of https://github.com/stan-dev/math into featu…
bob-carpenter d243df4
complex cosh
bob-carpenter 8ea8a75
logb, scalbn and complex tanh
bob-carpenter c54ec0b
Merge branch 'develop' of https://github.com/stan-dev/math into featu…
bob-carpenter 8620d47
complex operator/
bob-carpenter 29a8bf6
complex sin
bob-carpenter 77cdad1
complex cosine
bob-carpenter 5095a24
complex tan
bob-carpenter 673c4fc
complex asinh, acosh
bob-carpenter 654717d
complex atanh
bob-carpenter 5d4bad1
complex asin
bob-carpenter 13a1e39
complex acos
bob-carpenter 606a3c3
complex atan
bob-carpenter ba8100a
complex polar, still not passing with int args
bob-carpenter 01fb26a
complex polar tests componentwise
c69263a
cpplint include and spacing fixes
e376d6a
fix merge after qr removal on develop
971337c
header include fixes, part 1 of many
d25c1f9
complex trig includes for headers
ef72d1c
complex updates passing header tests
fffa169
Merge branch 'develop' of https://github.com/stan-dev/math into featu…
19dbc28
overloads for g++; remove complex in complex in test
6563272
doxygen arg cleanup
eb16b34
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot ea25a8e
moved rev includes to rev for complex acos
e4e1332
Merge branch 'feature/0123-complex-funs' of https://github.com/stan-d…
05596a5
include operator_equal and complex var
16788e2
includes for complex for g++ header tests
de9a53e
inline complex polar function
9e11c95
remove unused var(std::complex) ctor and tests
7b0a3e2
add using signbit in test
5f3267c
include std::abs for abs test
e13f3f3
resolve merge conflict in cosh
f7b41da
extended expect_near_rel to complex
508fbc2
added doc for logb
5b24cda
use signbit instead of comparison for copysign
657b9d3
added test cases and removed dead comments
4af9783
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot c254454
rev copysign includes
442ac3b
Merge branch 'feature/0123-complex-funs' of https://github.com/stan-d…
2ddec40
removed unnecessary constructor
7f13bfb
copysign boundary conditions
b826430
Merge branch 'develop' of https://github.com/stan-dev/math into featu…
492b26c
remove unused code and comments
9829029
tests for complex ==, != w. framework
779dc95
doc for complex comparison test
830941d
Merge branch 'develop' of https://github.com/stan-dev/math into featu…
e04365d
resolve pow(complex<T>, int) ambiguity in gcc from C++99
b4bccc9
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot c6bd5d7
Merge branch 'develop' of https://github.com/stan-dev/math into featu…
1a64c9a
MINGW32-specific overload resolving pow(double, int) ambiguity
1bd2ba9
Merge branch 'feature/0123-complex-funs' of https://github.com/stan-d…
d430f80
Made mingw implementation of pow inline (issue #123)
bbbales2 06b15fd
[Jenkins] auto-formatting by clang-format version 5.0.0-3~16.04.1 (ta…
stan-buildbot 1fce197
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #ifndef STAN_MATH_FWD_FUN_ARG_HPP | ||
| #define STAN_MATH_FWD_FUN_ARG_HPP | ||
|
|
||
| #include <stan/math/fwd/core.hpp> | ||
| #include <stan/math/prim/fun/arg.hpp> | ||
| #include <complex> | ||
|
|
||
| namespace stan { | ||
| namespace math { | ||
|
|
||
| /** | ||
| * Return the phase angle of the complex argument. | ||
| * | ||
| * @tparam T value type of autodiff variable | ||
| * @param[in] z argument | ||
| * @return phase angle of the argument | ||
| */ | ||
| template <typename T> | ||
| inline fvar<T> arg(const std::complex<fvar<T>>& z) { | ||
| return internal::complex_arg(z); | ||
| } | ||
|
|
||
| } // namespace math | ||
| } // namespace stan | ||
|
|
||
| #endif |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.