variable

fun variable(index: Int, value: T): DS<T, A>(source)

Build an instance representing a variable.

Instances built using this constructor are considered to be the free variables with respect to which differentials are computed. As such, their differential with respect to themselves is +1.