Perl: Operations (Multiplication/Addition) of Matrices

  • Thread starter Thread starter Soaring Crane
  • Start date Start date
  • Tags Tags
    Matrices Operations
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 4K views
Soaring Crane
Messages
461
Reaction score
0
I'm trying to figure out how to multiply and add square (3 X 3) matrices with Perl (without PDL) in which each matrix is in a separate file, but I haven't been making any progress. I'm a Perl beginner, so does anyone have any suggestions for examples/resources that may help me?

Thanks.
 
Physics news on Phys.org
I've worked with Perl a lot, but never for matrices, a.k.a. multidimensional arrays. It's not the first language I'd think of for doing numerical stuff. :-p

So I can't help you from direct experience. However, a Google search for "perl multidimensional array" turns up a lot of hits, including the following page from perldoc:

http://perldoc.perl.org/perllol.html