backprop

Heterogeneous automatic differentation