in reply to Fast matrix multiplication

I have not used this, and I do not know about the raw bandwidth issue, but you may like to try GSL (Gnu Scientific Library) with ATLAS for enhanced BLAS matrix operations. See "Alternative BLAS Libraries" on the GSL page. Perhaps people who do more matrix multiplication can compare this to the other two packages mentioned above.

However the GSL page mentions PDL::GSL which I can't seem to find. And I don't know if Math::GSL covers matrix multiplication (you'd think it would..). On the other hand, if the important part is the BLAS implementation and you are using ATLAS, why not just use ATLAS either with Inline::C or better yet from command line, skipping all the to-from perl overhead.

From http://math-atlas.sourceforge.net/,
The ATLAS (Automatically Tuned Linear Algebra Software) project is an ongoing research effort focusing on applying empirical techniques in order to provide portable performance. At present, it provides C and Fortran77 interfaces to a portably efficient BLAS implementation, as well as a few routines from LAPACK.

If someone else could comment on this I would appreciate it. Very likely the PDL people are well aware of ATLAS too.

Replies are listed 'Best First'.
Re^2: Fast matrix multiplication
by etj (Priest) on Feb 20, 2022 at 15:30 UTC
    PDL has bindings to parts of GSL, rather than a single big PDL::GSL. See https://metacpan.org/dist/PDL and text-search for "gsl". There are indeed plans to use BLAS, or alternative implementations such as ATLAS, more pervasively.
Re: Re: Fast matrix multiplication
by mattr (Curate) on Aug 13, 2003 at 11:40 UTC
    P.S. The ATLAS homepage says it is used as an option in R.