Quantcast
Channel: Sum of all matrix entries - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 3

Sum of all matrix entries

$
0
0

For large $n\times n$ symmetric matrices $T,$ where $n\approx10000,$ is there an efficient way of computing the total sum $S$ of its entries in Mathematica without having to loop over all its entries? i.e. $S=\sum_{i,j} t_{ij},$ for every $i,j.$ The fact that it's symmetric does help already as we only have to sum over one of its triangular parts.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images