Closed noughtmare closed 4 years ago
Currently, imag and real have type AFType a => Array a -> Array a. But imag and real convert complex numbers to real numbers, so the type should be (AFType a, AFType (Complex a)) => Array (Complex a) -> Array a.
imag
real
AFType a => Array a -> Array a
(AFType a, AFType (Complex a)) => Array (Complex a) -> Array a
Currently,
imag
andreal
have typeAFType a => Array a -> Array a
. Butimag
andreal
convert complex numbers to real numbers, so the type should be(AFType a, AFType (Complex a)) => Array (Complex a) -> Array a
.