I have a square $n \times n$ matrix $m$, and need to apply a function $f$ to all elements on and above the diagonal.
This is of course easy to do using a nested table:
Table[Table[f @ m[[i,j]],{i,1,n}],{j,i,n}]
Is there a more elegant functional equivalent to this line? Something that would be more declarative in style?
Table[Table[f@m[[i, j]], {j, i, n}], {i, n}]
? $\endgroup$