[Haskell-cafe] trying to go from FFT type to Vector.Storable
Henk-Jan van Tuyl
hjgtuyl at chello.nl
Tue May 12 08:43:33 UTC 2015
On Tue, 12 May 2015 05:50:26 +0200, <briand at aracnet.com> wrote:
> (FFTWReal r, Ix i, Shapable i) => CArray i (Complex r) -> CArray i
> (Complex r)
:
> FFTWReal maps to RealFloat which i found, but i haven't found anything
> that will take a RealFloat and give me a Double.
L.S.,
You could use something like:
toDouble :: FFTWReal r => r -> Double
toDouble = id
Or add the type of the functions you create to your program.
Regards,
Henk-Jan van Tuyl
--
Folding at home
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://folding.stanford.edu/
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
More information about the Haskell-Cafe
mailing list