and in-place updates on the real and imag tensors will update
  the original complex tensor. Also, the returned real and imag
  tensors are not contiguous.



y.real
   tensor([ 0.6125, -0.3773, -0.0861])
y.imag
   tensor([-0.1681,  1.3487, -0.7981])
y.real.mul_(2)
   tensor([ 1.2250, -0.7546, -0.1722])
y
   tensor([ 1.2250-0.1681j, -0.7546+1.3487j, -0.1722-0.7981j])
y.real.stride()
   (2,)



Angle and abs
The angle and absolute values of a complex tensor can be computed
using "torch.angle()" and "torch.abs()".



x1=torch.tensor([3j, 4+4j])
x1.abs()
   tensor([3.0000, 5.6569])
x1.angle()
   tensor([1.5708, 0.7854])



Linear Algebra
Many linear algebra operations, like "torch.matmul()", "torch.svd()",
"torch.solve()" etc., support complex numbers. If you'd like to
request an operation we don't currently support, please search if an
issue has already been filed and if not, file one.
Serialization