in reply to Re^2: reading files in @ARGV doesn't return expected output
in thread reading files in @ARGV doesn't return expected output

As an aside, fasoli, you said,

... perform some mathematical calculations on the combination of matrices ... I haven't included this bit of the code yet but (fingers crossed) it works.

When Marshall posted his example matrix_transpose, I was reminded that I wanted to point out: instead of crossing your fingers that your (or Marshall's) roll-your-own-code truly works, there are plenty of modules and families of modules that will do the matrix math and have been fully tested across edge cases. Math::MatrixReal, Math::GSL, and PDL::Matrix are three such well-tested Matrix modules. It is probably worth your time to try out one or more of those -- their math has been checked thoroughly over the years, and they are likely to run faster (Benchmark), too.

  • Comment on Re^3: reading files in @ARGV doesn't return expected output

Replies are listed 'Best First'.
Re^4: reading files in @ARGV doesn't return expected output
by etj (Priest) on May 10, 2022 at 14:40 UTC
    Probably the best-performing one would be the LAPACK-wrapper, PDL::LinearAlgebra - it has nice wrappers for LAPACK, or if you prefer, you can access the raw LAPACK functions.