- class QuadraticEnergy(position, A, b, _grad=None)#
The Energy for a quadratic form. The most important aspect of this energy is that its metric must be position-independent.
Returns a new Energy object, initialized at position.
- at_with_grad(position, grad)#
Specialized version of at, taking also a gradient.
This custom method is meant for use within :class:ConjugateGradient` minimizers, which already have the gradient available. It saves time by not recomputing it.
- property metric#
implicitly defined metric. A positive semi-definite operator or function describing the metric of the potential at the given position.
- property value#
value of the functional.
The value of the energy functional at given position.