Autodiff This is a minimal implementation of automatic differentiation for functions involving numpy arrays.