These are tests to assist with creating LinearOperator.
Test for verifying forward and adjoint functions in LinearOperator.
adjointTest verifies correctness for the forward and adjoint functions for an operator via asserting \(<A^H y, x> = <y, A x>\)
| Parameters: | O : LinearOperator
significant : int, optional
|
|---|
Examples
>>> from pyop import LinearOperator
>>> A = LinearOperator((4,4), lambda _, x: x, lambda _, x: x)
>>> adjointTest(A)
>>> B = LinearOperator((4,4), lambda _, x: x, lambda _, x: 2*x)
>>> adjointTest(B)
...
Traceback (most recent call last):
...
AssertionError: