Skip to contents

Converts input matrix to a general compressed sparse column matrix (dgCMatrix), with special handling for symmetric sparse matrices.

Usage

coerce_to_dgCMatrix(W)

Arguments

W

A base matrix, Matrix, or symmetric sparse matrix (e.g., dsCMatrix).

Value

A `dgCMatrix` object.