Perl: Operations (Multiplication/Addition) of Matrices

  • Thread starter Thread starter Soaring Crane
  • Start date Start date
  • Tags Tags
    Matrices Operations
AI Thread Summary
To multiply and add square (3 X 3) matrices using Perl without PDL, users are seeking guidance on handling multidimensional arrays. As a beginner in Perl, one individual is struggling to find resources or examples that specifically address matrix operations. While another participant acknowledges their lack of direct experience with Perl for numerical tasks, they recommend searching for "perl multidimensional array," which yields numerous resources, including a helpful page from perldoc that discusses Perl's handling of arrays. This indicates that while Perl may not be the first choice for numerical computations, there are still valuable resources available for those looking to work with matrices.
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.
 
Technology 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
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Back
Top