Calculates both the value and the gradient at a point
calculates the gradient at a point
Calculates the gradient of the function on a subset of the data
Lenses provide a way of mapping between two types, which we typically use to convert something to a DenseVector or other Tensor for optimization purposes.
calculates the value at a point
Calculates the value of the function on a subset of the data