Re: Average of 2-D array
- Posted by jimcbrown (admin) May 31, 2015
- 1466 views
irv said...
flatten() works, of course. I was just surprised by the fact that sum() can handle the array on its own, but apparently fails when sum() is called by average().
Seems inconsistent somehow.
Maybe this is a bug... average() won't fail but just return an incorrect answer.