Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: how to get average of matrices' elements?

by toolic (Bishop)
on Nov 30, 2016 at 19:13 UTC ( #1176969=note: print w/replies, xml ) Need Help??


in reply to Re^2: how to get average of matrices' elements?
in thread how to get average of matrices' elements?

That map is wrong, we're not building a hash.
Please try running my code before you make such a claim. My code creates an array-of-arrays data structure with all elements initialized to 0.

UPDATE: see my updated code.

  • Comment on Re^3: how to get average of matrices' elements?

Replies are listed 'Best First'.
Re^4: how to get average of matrices' elements?
by Anonymous Monk on Nov 30, 2016 at 19:39 UTC
    I did run your code. Here's the output from Data::Dump:
    [[1, 0, 2, 0, 3, 0], [1, 0, 2, 0, 3, 0], [1, 0, 2, 0, 3, 0]]

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2022-01-16 19:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (49 votes). Check out past polls.

    Notices?