Companion
The companion object contains factory functions to create new instances. There is no guarantee as to the specific type returned for the interface (but always an instance of MutableMatrix).
Functions
Link copied to clipboard
Create a new mutable matrix that is initialized from the given matrix. Unlike the Matrix
equivalent this version is guaranteed to create a new matrix, and it does not invoke [copyOf]
.
A simple array-like mutable matrix that contains the given initial value.
open inline operator override fun <T> invoke(width: Int, height: Int, init: (Int, Int) -> T): MutableMatrix<T>
A simple array-like mutable matrix that contains the values given by the function. The values are assigned at construction.