[Haskell-cafe] Vector (or List) to CArray?
acowley at seas.upenn.edu
Thu Jan 19 20:06:03 CET 2012
On Thu, Jan 19, 2012 at 1:15 PM, Dominic Espinosa <dcespin at fastmail.fm> wrote:
> 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've not tried this, but I would expect to be able to use
<http://hackage.haskell.org/package/hsndfile-vector-0.4.0>, and then
use the ForeignPtr that lives inside the Vector the to build a CArray.
More information about the Haskell-Cafe