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

derivatives and substitutions with values bound to one or more spaces #757

Open
joostvanzwieten opened this issue Dec 16, 2022 · 2 comments

Comments

@joostvanzwieten
Copy link
Member

In certain situations I need to compute the derivative of some function.Array, say f, to an argument, say x, and evaluate f with x substituted with a value that is bound to a space, e.g. a basis. This is currently not possible. Derivatives are computed after lowering and during lowering we need to know for each function.Array to which spaces they are bound. function.Argument is not bound to any space.

@joostvanzwieten
Copy link
Member Author

One way to go about this is to extend function.Argument with spaces. If an argument is bound to one or more spaces, it cannot be evaluated, but it can be substituted and used for computing derivatives. function.replace_arguments has to be aware of the spaces on which the arguments are defined.

@joostvanzwieten
Copy link
Member Author

Or if every evaluable.Array supports a variable number of leading pointwise axes, we can actually introduce the required axes with evaluable.replace_arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant