pchanial / pyoperators

Operators and solvers for high-performance computing.
http://pchanial.github.com/pyoperators
Other
14 stars 9 forks source link

ENH: Implement automatic differentiation #4

Open pchanial opened 12 years ago

pchanial commented 12 years ago

Use derivation rules to deduce the derivates of an operator.

nbarbey commented 12 years ago

We could implement it like this :

pchanial commented 12 years ago
nbarbey commented 12 years ago

The chain rule also apply in higher dimensions [1]. Interestingly the derivative of Ax is A^T [2] I think this gives us all we need to implement automatic differentiation in a way that allow the definition of criterions as Operators.

[1] http://en.wikipedia.org/wiki/Chain_rule#The_chain_rule_in_higher_dimensions [2] http://en.wikipedia.org/wiki/Matrix_calculus