title: Is there an R function for the element-wise summation of the matrices stored as elements in single list object?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11641701/sum-a-list-of-matrices">Sum a list of matrices</a><br>
    <a href="https://stackoverflow.com/questions/13826983/add-together-a-list-of-matrices-element-by-element">Add together a list of matrices element-by-element</a>  </p>
  </blockquote>
  
  
  
  <p>I have a R list object. Each element of the list contains 3 by 3 matrix.
  I want to sum all the matrices element-wise.
  That is:</p>
  
  <pre><code> myList &lt;- list();
   myList[[1]] &lt;- matrix(1:9,3,3)
   myList[[2]] &lt;- matrix((1:9)*10,3,3)
  </code></pre>
  
  <p>Then I want the final output output</p>
  
  <pre><code>myList[[1]]+myList[[2]]
  
        [,1] [,2] [,3]
   [1,]   11   44   77
   [2,]   22   55   88
   [3,]   33   66   99
  </code></pre>
  
  <p>Of course I can write a loop for this calculation but loop in R is very slow.
  Is there built in function in R which does this business?</p>