std/gradient

Automatic differentiation: the derivative of a function written in ordinary arithmetic, computed alongside its value and exact to the scalar's own precision, with no step size and no symbolic algebra.

Dual is the forward mode. It carries a value and the rate at which that value changes, and because it is itself a Real it runs through every function that is generic over Real - geometry, animation, physics - without that function being written for it. The package is pure TorbScript: no foreign functions, and no dependency on std/tensor.

Modules

Everything