label_vec2mat.Rd
Convert label vector to matrix
label_vec2mat(z, K = NULL, sparse = F)
a label vector
number of labels in z
z
whether the output should be sparse matrix