zeros

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

Creates a new matrix with the specified number of rows and columns, filled with zeros.

Return

A matrix with dimensions rows x cols, initialized to zero.

Parameters

rows

The number of rows in the matrix.

cols

The number of columns in the matrix.