Computes the cardinality (the sum of non-zero elements) of each column of the matrix \(\mathbf{w}\).
cardinality(w)
a numeric matrix, e.g. xcoef as returned by nscancor
xcoef
nscancor