Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Matrix Multiplication Problem

by Roy Johnson (Monsignor)
on Sep 02, 2004 at 17:59 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-18 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found