Commit 3275f4f3 authored by Theo Steininger's avatar Theo Steininger
Browse files

Added hermitian_decomposition to LMSpace

parent 2a46181b
......@@ -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---
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment