Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
9b7b4d94
Commit
9b7b4d94
authored
Jul 04, 2018
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics
parent
8b2c1673
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
nifty5/models/model.py
nifty5/models/model.py
+4
-4
nifty5/operators/selection_operator.py
nifty5/operators/selection_operator.py
+1
-2
No files found.
nifty5/models/model.py
View file @
9b7b4d94
...
@@ -26,19 +26,19 @@ from ..utilities import NiftyMetaBase
...
@@ -26,19 +26,19 @@ from ..utilities import NiftyMetaBase
class
Model
(
NiftyMetaBase
()):
class
Model
(
NiftyMetaBase
()):
"""
"""
The Model object is an implementation of a * which knows:
The Model object is an implementation of a * which knows:
- position in parameter
space. (Field, Mulit
Field)
- position in parameter
space. (Field, Multi
Field)
- value according to its modelfunction A. A(position)
- value according to its model
function A. A(position)
- Jacobian of the model function at the current position.
- Jacobian of the model function at the current position.
Parameters
Parameters
----------
----------
position : Field, Mul
it
Field
position : Field, Mul
ti
Field
The input parameter of the model
The input parameter of the model
Notes
Notes
-----
-----
An instance of the model class knows its position, value and Jacobian.
An instance of the model class knows its position, value and Jacobian.
One can 'jump' to a new position
,
with the help of the 'at' method, whereby
One can 'jump' to a new position with the help of the 'at' method, whereby
one automatically gets the value and Jacobian of the model. The 'at' method
one automatically gets the value and Jacobian of the model. The 'at' method
creates a new instance of the class.
creates a new instance of the class.
"""
"""
...
...
nifty5/operators/selection_operator.py
View file @
9b7b4d94
...
@@ -34,7 +34,6 @@ class SelectionOperator(LinearOperator):
...
@@ -34,7 +34,6 @@ class SelectionOperator(LinearOperator):
from
..multi.multi_domain
import
MultiDomain
from
..multi.multi_domain
import
MultiDomain
if
not
isinstance
(
domain
,
MultiDomain
):
if
not
isinstance
(
domain
,
MultiDomain
):
raise
TypeError
(
"Domain must be a MultiDomain"
)
raise
TypeError
(
"Domain must be a MultiDomain"
)
self
.
_target
=
domain
[
key
]
self
.
_domain
=
domain
self
.
_domain
=
domain
self
.
_key
=
key
self
.
_key
=
key
...
@@ -44,7 +43,7 @@ class SelectionOperator(LinearOperator):
...
@@ -44,7 +43,7 @@ class SelectionOperator(LinearOperator):
@
property
@
property
def
target
(
self
):
def
target
(
self
):
return
self
.
_
target
return
self
.
_
domain
[
self
.
_key
]
@
property
@
property
def
capability
(
self
):
def
capability
(
self
):
...
...
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