mattloper / chumpy

MIT License
195 stars 118 forks source link

Forward or Backward mode autodiff? #16

Open stewartdent opened 6 years ago

stewartdent commented 6 years ago

Is chumpy using Forward mode or Reverse mode automatic differentiation? A quick browse seems like forward mode...

SelvamArul commented 6 years ago

The function computing the automatic differentiation has implementation of both forward and backward mode here.

The documentation (sec 2.1) says "Chumpy is primarily a forward-mode, Jacobian producing autodifferentiation framework. Reverse-mode is partially supported, but much slower than it should be because some basic functions need implementation."