BLAS and LAPACK bindings for operations over math/matrix

32 views
Skip to first unread message

Pratyush Das

unread,
Mar 28, 2020, 7:37:03 AM3/28/20
to Racket Users
So, this is what I found when I was looking for a Racket library with BLAS and LAPACK bindings - 

But they implement their own matrices and use the bindings for operations over them. Are there any implementations that use BLAS and LAPACK bindings for operations over matrices created using the math/matrix racket extension?

Jens Axel Søgaard

unread,
Mar 28, 2020, 9:02:07 AM3/28/20
to Pratyush Das, Racket Users

Not that I know of.

The way matrices are stored in `math/matrix` is not suitable for passing to BLAS directly.
The library `math/matrix` uses functional arrays to store the elements.
The library BLAS on the other hand expects piece of memory in which the elements are laid out in a particular way.
So if you have a math/matrix matrix and want to use a BLAS operation, you will need write conversion functions.

/Jens Axel



 






Reply all
Reply to author
Forward
0 new messages