R/sparse_utils.R
make_sparse_diagonal_matrix.Rd
Make a CSC sparse diagonal matrix
make_sparse_diagonal_matrix(size, diagonal = NULL)
number of rows or columns
if specified, the diagonal values, in which case size is ignored
a compressed sparse column diagonal matrix