Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
mixedSum :: [Matrix (Complex Double)] -> Maybe (Matrix (Complex Double)) Source
Take a list of matrices, some of which may differ from the others in dimensionality by a factor of two, and maybe return the sum of these matrices with appropriate (right) kronecker products taken to make the summation well-formed. Useful for combining matrices written in forms with and without spin indices.