Skip to content

Conversation

@joostvanzwieten
Copy link
Member

No description provided.

The `WithDerivative` evaluable defines a derivative of a wrapped array to some
target. The target is not included in the `Evaluable.dependencies`, but is
included in the `Array.arguments`. The current default implementation of
`Array._derivative` incorrectly returns zeros if the derivative target is not
found in `self.dependencies`. This patch fixes the bug by testing for existence
in `self.arguments`.
This patch changes the `transform_chains` part of the lower args from a list of
`EvaluableTransformChain`s to a tuple of a list of transforms sequences
(`transformseq.Transforms`) and an evaluable index (`Array`). The relevant
operations defined on the `EvaluableTransformChains` are now defined as
subclasses of `evaluable.Array`, taking (unevaluable) transforms sequences, the
evaluable index and evaluable coordinates as constructor arguments.
@joostvanzwieten joostvanzwieten modified the milestones: v8, v9 Jul 28, 2023
@joostvanzwieten joostvanzwieten removed this from the v9 milestone Apr 9, 2025
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