arrayfire / arrayfire-haskell

Haskell bindings to ArrayFire
http://hackage.haskell.org/package/arrayfire
BSD 3-Clause "New" or "Revised" License
59 stars 5 forks source link

imag and real should have type Array (Complex a) -> Array a #15

Closed noughtmare closed 4 years ago

noughtmare commented 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.

dmjio commented 4 years ago

16