Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Matrix Multiplication Problem

by Roy Johnson (Monsignor)
on Sep 02, 2004 at 17:59 UTC ( #388024=note: print w/replies, xml ) Need Help??


in reply to Matrix Multiplication Problem

my @product=matrix_multiply(@matrix1,@matrix2); should be my @product=matrix_multiply(\@matrix1,\@matrix2);

Also, your comparisons are should use < instead of le. And matrix_multiply should doesn't return an array, but an array ref.


Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: Matrix Multiplication Problem
by RolandGunslinger (Curate) on Sep 02, 2004 at 18:14 UTC
    Thanks Roy, that did it!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://388024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2021-10-16 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (69 votes). Check out past polls.

    Notices?