-
Notifications
You must be signed in to change notification settings - Fork 6
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
first & second derivative #160
Open
sjanssen2
wants to merge
58
commits into
first_derivative
Choose a base branch
from
second_derivative
base: first_derivative
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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
…or candidates (note that naming schema is messed up!) adding soft_max_hessian operator
…ssically or via the hessian product operator
…nd re-execute "back()" let multiple functions additionally know if user requested derivative generation
…uested by the user added function to split the algebra product "first * second" into two independet instances for derivative generation, i.e. "back()" will be executed twice, resulting in multiple .hh and .cc files
different code generation for first and second derivative in "inject_derivative_body" and "init_derivative_recording" added new function "derivative_collect_traces" replace bool "inject_derivatives" with int "ast.current_derivative" "push_back_ret_decl" also declares variables "edgeweight" to record these in addition to vdot
…uested derivative generation made "class_name" private to enforce use of convenience functions "set_class_name" and "get_class_name_lower_derivative" to prepend "_derivativeX" if necessary
…at unused variable does NOT get generated
Empty edgeweight
…angle), ml_comps1)
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.
gapc will produce the following files, if you ask for second derivatives
--derivative 2
. You also have to specify an algebra product likeleft * right
where left and right algebras must be synoptic!adding additional member q, since D2 needs to store both vdot and q for candidates (note that naming schema is messed up!)
adding soft_max_hessian operator
ml_comps -> cadd(incl(dangle), ml_comps1)