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
13
Merge Requests
13
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
19a7c1ed
Commit
19a7c1ed
authored
Jul 16, 2018
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'more_domain_docu' into 'NIFTy_5'
more documentation See merge request ift/nifty-dev!55
parents
af1d849c
ddba5d13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
nifty5/domain_tuple.py
nifty5/domain_tuple.py
+2
-0
nifty5/multi/multi_domain.py
nifty5/multi/multi_domain.py
+17
-0
No files found.
nifty5/domain_tuple.py
View file @
19a7c1ed
...
...
@@ -27,6 +27,8 @@ class DomainTuple(object):
This class holds a tuple of :class:`Domain` objects, which together form
the space on which a :class:`Field` is defined.
This corresponds to a tensor product of the corresponding vector
fields.
Notes
-----
...
...
nifty5/multi/multi_domain.py
View file @
19a7c1ed
...
...
@@ -24,6 +24,12 @@ from ..utilities import frozendict
class
MultiDomain
(
object
):
"""A tuple of domains corresponding to a direct sum.
This class is the domain of the direct sum of fields living
over (possibly different) domains. To make an instance
of this class, call `MultiDomain.make(inp)`.
"""
_domainCache
=
{}
def
__init__
(
self
,
dict
,
_callingfrommake
=
False
):
...
...
@@ -36,6 +42,17 @@ class MultiDomain(object):
@
staticmethod
def
make
(
inp
):
"""Creates a MultiDomain object from a dictionary of names and domains
Parameters
----------
inp : MultiDomain or dict{name: DomainTuple}
The already built MultiDomain or a dictionary of DomainTuples
Returns
------
A MultiDomain with the input Domains as domains
"""
if
isinstance
(
inp
,
MultiDomain
):
return
inp
if
not
isinstance
(
inp
,
dict
):
...
...
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