make_sparse_diagonal_matrix: Make a CSC sparse diagonal matrix

View source: R/sparse_utils.R

make_sparse_diagonal_matrixR Documentation

Make a CSC sparse diagonal matrix

Description

Make a CSC sparse diagonal matrix

Usage

make_sparse_diagonal_matrix(size, diagonal = NULL)

Arguments

size

number of rows or columns

diagonal

if specified, the diagonal values, in which case size is ignored

Value

a compressed sparse column diagonal matrix


CVXR documentation built on June 27, 2024, 5:11 p.m.