operator.py 555 Bytes
Newer Older
Martin Reinecke's avatar
Martin Reinecke committed
1
2
3
4
5
from __future__ import absolute_import, division, print_function

from .compat import *
from .utilities import NiftyMetaBase

Martin Reinecke's avatar
more    
Martin Reinecke committed
6

Martin Reinecke's avatar
Martin Reinecke committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Operator(NiftyMetaBase()):
    """Transforms values living on one domain into values living on another
    domain, and can also provide the Jacobian.
    """

    def __call__(self, x):
        """Returns transformed x

        Parameters
        ----------
        x : Linearization
            input

        Returns
        -------
        Linearization
            output
        """
        raise NotImplementedError