DistOperator.derivative¶
-
DistOperator.
derivative
(self, point)[source]¶ The derivative operator.
DistOperator(y).derivative(z)(x) == ((y - z) / y.dist(z)).inner(x)
This is only applicable in inner product spaces.
- Parameters
- x
domain
element-like
Point in which to take the derivative.
- x
- Returns
- derivative
InnerProductOperator
- derivative
- Raises
- ValueError
If
point == self.vector
, in which case the derivative is not well defined in the Frechet sense.
Notes
The derivative cannot be written in a general sense except in Hilbert spaces, in which case it is given by
Examples
>>> r2 = odl.rn(2) >>> x = r2.element([1, 1]) >>> op = DistOperator(x) >>> derivative = op.derivative([2, 1]) >>> derivative([1, 0]) 1.0