2B. Rank

m0=: +/

sum (column sums of a matrix)

m1=: +/"1

sum vectors (row sums of a matrix)

d2=: *"0 _

outer product; same as */

m3=: +/@(*"1 _)

inner product; same as +/ .*