go ahead... be a heretic | |
PerlMonks |
Re: Matrix Multiplication Problemby Roy Johnson (Monsignor) |
on Sep 02, 2004 at 17:59 UTC ( [id://388024]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|