8000 Autodiff by shawn-mcadam · Pull Request #9 · uofs-simlab/func · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Autodiff #9

8000
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 21 commits into from
May 13, 2022
Merged

Autodiff #9

merged 21 commits into from
May 13, 2022

Conversation

shawn-mcadam
Copy link
Collaborator

Added automatic differentiation to each of the table types.
Some notes:

  • Changing FunctionContainer such that it takes std::function instead of EvaluationImplementation should be easy and simplify usage.
  • The UniformAutoDiffTable class was added but is currently unused because it won't do much.
  • Classes now throw slightly more helpful exceptions (most notably, UniformLookupTable can tell you if you made a typo when you give create() a LUT's name)

struct func_type<0>{
using type = EvaluationFunctor<double,double>*;
};

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fails in g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 with error:
error: explicit specialization in non-namespace scope
Apparently this is not standard-compliant, but is accepted by clang

struct func_type<0>{
using type = EvaluationFunctor<double,double>*;
};

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fails in g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 with error:
error: explicit specialization in non-namespace scope
Apparently this is not standard-compliant, but is accepted by clang

@kevinrichardgreen kevinrichardgreen merged commit 4bc2ed7 into uofs-simlab:dev May 13, 2022
@shawn-mcadam shawn-mcadam deleted the autodiff branch July 7, 2022 20:04
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.

2 participants
0