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

Added T cast operator to Real #193

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mattarroz
Copy link

The cast operator is needed to make std::isfinite work on Real, as discussed in #191. In consequence, it is now possible to compute derivatives for Eigenvalue/vector computations.

@mattarroz
Copy link
Author

I had tested autodiff only as a header only-library and wasn't aware of the compile errors. Unsure if the fixes to min and max are correct.

Copy link
Contributor

@PaulXiCao PaulXiCao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The introduced operator T() could be useful. The changes to min and max are probably not what we want.

autodiff/forward/real/real.hpp Outdated Show resolved Hide resolved
autodiff/forward/real/real.hpp Outdated Show resolved Hide resolved
autodiff/forward/real/real.hpp Outdated Show resolved Hide resolved
autodiff/forward/real/real.hpp Outdated Show resolved Hide resolved
autodiff/forward/real/real.hpp Outdated Show resolved Hide resolved
tests/forward/real/real.test.cpp Outdated Show resolved Hide resolved
…ator by adding constexpr and removing static_cast.
tests/forward/real/real.test.cpp Outdated Show resolved Hide resolved
tests/forward/real/real.test.cpp Outdated Show resolved Hide resolved
autodiff/forward/real/real.hpp Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

None yet

2 participants