Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
d3fb76f1
Commit
d3fb76f1
authored
Jul 03, 2018
by
Martin Reinecke
Browse files
add docs for OperatorAdapter
parent
b5fd6a56
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty5/models/constant.py
View file @
d3fb76f1
...
...
@@ -28,8 +28,8 @@ class Constant(Model):
constant : Field
The value of the model.
Note
----
Note
s
----
-
Since there is no model-function associated:
- Position has no influence on value.
- There is no gradient.
...
...
nifty5/operators/operator_adapter.py
View file @
d3fb76f1
...
...
@@ -21,7 +21,24 @@ import numpy as np
class
OperatorAdapter
(
LinearOperator
):
"""Class representing the inverse and/or adjoint of another operator."""
"""Class representing the inverse and/or adjoint of another operator.
Objects of this class are created internally by `LinearOperator` whenever
the inverse and/or adjoint of an already existing operator object is
requested via the `LinearOperator` attributes `inverse`, `adjoint` or
`_flip_modes()`.
Users should never have to create instances of this class directly.
Parameters
----------
op : LinearOperator
The operator on which the adapter will act
op_transform : int
1) adjoint
2) inverse
3) adjoint inverse
"""
def
__init__
(
self
,
op
,
op_transform
):
super
(
OperatorAdapter
,
self
).
__init__
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment