zeros

fun zeros(rows: Int, cols: Int): SparseMatrix(source)

Creates a sparse zero matrix with the specified dimensions.

Return

A sparse zero matrix with dimensions rows x cols.

Parameters

rows

The number of rows in the matrix.

cols

The number of columns in the matrix.