make_sparse_diagonal_matrix {CVXR}R 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


[Package CVXR version 1.0-14 Index]