OperatorTest.derivative

OperatorTest.derivative(self)[source]

Verify that Operator.derivative works appropriately.

The code verifies if

||A(x+c*p) - A(x) - A'(x)(c*p)|| / c = o(c)

for c --> 0 using a selection of elements x and p.

References

Wikipedia article on Derivative. Wikipedia article on Frechet derivative.