evalf / nutils

The nutils project
http://www.nutils.org/
MIT License
88 stars 48 forks source link

fix evaluable array const checks #807

Closed joostvanzwieten closed 1 year ago

joostvanzwieten commented 1 year ago

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. This PR fixes Evaluable.isconstant and Array._derivative (default impl) which both neglect to inspect the .arguments.