Put the time machine away, Matthew. You're not fooling anybody.

Thanks. :D

On 12/20/2012 07:33 PM, Matthew Flatt wrote:
`flvector->cpointer'?

At Thu, 20 Dec 2012 19:17:13 -0700, Neil Toronto wrote:
How hard would it be to allow flvectors to be passed to foreign
functions as double pointers?

BLAS and LAPACK linear algebra functions primarily accept pointers to
floating-point arrays in row-major order. If we could send flvectors
directly (or at least pointers to their elements), we could reuse the
`FlArray' type for LAPACK-accelerated matrices, cut down on copying, and
more easily transparently use LAPACK on systems that have it.

Would it require somehow allocating flvectors with 'atomic-interior so
they wouldn't be relocated?

Neil ⊥

_________________________
 Racket Developers list:
 http://lists.racket-lang.org/dev

Reply via email to