GreenCard: list marshalling
Hal Daume III
hdaume@ISI.EDU
Sun, 2 Jun 2002 17:54:15 -0700 (PDT)
Well, you could just use Ptr Double to mimick c arrays and define
conversion functions. I'm currently porting BLAS and LAPACK to Haskell
and this is what I do.
--
Hal Daume III
"Computer science is no more about computers | hdaume@isi.edu
than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume
On Mon, 3 Jun 2002, Ferenc Wagner wrote:
> Hi,
>
> I'd like to call LaPack routines from Haskell. Having read
> the GreenCard documentation it's still not obvious to me how
> I could marshall a list of numbers to C. Surely it's
> possible to create a ForeignObj, then fill it in element-by-
> element. But isn't there a more straightforward way? Even
> without monads?
>
> Cheers: Feri.
> _______________________________________________
> Haskell mailing list
> Haskell@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
>