Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
3275f4f3
Commit
3275f4f3
authored
Jan 11, 2017
by
Theo Steininger
Browse files
Added hermitian_decomposition to LMSpace
parent
2a46181b
Changes
1
Show whitespace changes
Inline
Side-by-side
nifty/spaces/lm_space/lm_space.py
View file @
3275f4f3
...
...
@@ -111,6 +111,13 @@ class LMSpace(Space):
super
(
LMSpace
,
self
).
__init__
(
dtype
)
self
.
_lmax
=
self
.
_parse_lmax
(
lmax
)
def
hermitian_decomposition
(
self
,
x
,
axes
=
None
):
hermitian_part
=
x
.
copy_empty
()
anti_hermitian_part
=
x
.
copy_empty
()
hermitian_part
[:]
=
x
.
real
anti_hermitian_part
[:]
=
x
.
imag
return
(
hermitian_part
,
anti_hermitian_part
)
# ---Mandatory properties and methods---
@
property
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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