[Haskell-cafe] trying to go from FFT type to Vector.Storable

Leza Morais Lutonda leza.ml at fecrd.cujae.edu.cu
Tue May 12 15:19:48 UTC 2015


On 05/11/2015 11:50 PM, briand at aracnet.com wrote:
> FFTWReal maps to RealFloat which i found, but i haven't found anything that will take a RealFloat and give me a Double.
Double` is `RealFloat`, so it is `Fractional`. Every FFTWReal is a 
`Real` too, so you can use realToFrac to map from FFTWReal to Double:

fftwRealToDouble :: FFTWReal r => r -> Double
fftwRealToDouble = realToFrac

Regards.

-- 
Leza Morais Lutonda, Lemol-C
http://lemol.github.io



50 Aniversario de la Cujae. Inaugurada por Fidel el 2 de diciembre de 1964  http://cujae.edu.cu




More information about the Haskell-Cafe mailing list