Companion

Functions

Link copied to clipboard

Generates an identity matrix of the specified size.

Link copied to clipboard
fun zeros(rows: Int, cols: Int): Matrix

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