472,127 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

Adding two arrays (element by element)

Hello,

Starting to code a robust routine to add two arrays
element by element $new[0] = $a[0] + $b[0] ...
I thought that this should already be done
and searched CPAN for a sutiable module.
Despite Math:::Matrix I could not realy find much
and the ::Matrix module seemed to be more that
I needed...

The resulting array should have the length of the longest
and be robust to differences in length.

Is there a "best practice" solution to this?

/Björn
Jul 19 '05 #1
0 4505

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by David | last post: by
34 posts views Thread by Adam Hartshorne | last post: by
5 posts views Thread by Troy | last post: by
1 post views Thread by Rob Griffiths | last post: by
weaknessforcats
29 posts views Thread by weaknessforcats | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.