Sum of elements below main diagonal of matrix: Difference between revisions

m
→‎{{header|R}}: Syntax highlighting.
m (→‎{{header|R}}: Syntax highlighting.)
Line 1,297:
=={{header|R}}==
R has lots of native matrix support, so this is trivial.
<lang Rrsplus>mat <- rbind(c(1,3,7,8,10),
c(2,4,16,14,4),
c(3,1,9,18,11),
331

edits