[Haskell-cafe] Vector (or List) to CArray?
Aleksey Khudyakov
alexey.skladnoy at gmail.com
Thu Jan 19 19:29:26 CET 2012
On 19.01.2012 22:15, Dominic Espinosa wrote:
> Hello,
>
> I'm trying to use the fftw binding, and its functions operate on CArrays of
> Complex. My data is coming from hsndfile, so it starts out as a Vector of
> Double. How do I convert this data to CArray? The API functions in the
> CArray module don't seem to indicate how.
>
I think only way is to go though lists. CArray and vector package use
different primitives.
> listArray (0, V.length v) $ V.toList v
More information about the Haskell-Cafe
mailing list