Torch has only partial support for complex numbers (1.6.0.dev20200623).
torch_complex implements complex operations as real operations.
This PR adds support for torch_complex.
One drawback:
It looks like the matrix inverse in torch_complex has some stability problems.
Therefore, the implementation has an option to use torch.solve as alternative (Strangely torch.solve is implemented for complex numbers, while torch.matmul is not).
Torch has only partial support for complex numbers (1.6.0.dev20200623). torch_complex implements complex operations as real operations. This PR adds support for torch_complex.
One drawback: It looks like the matrix inverse in torch_complex has some stability problems. Therefore, the implementation has an option to use
torch.solve
as alternative (Strangelytorch.solve
is implemented for complex numbers, whiletorch.matmul
is not).