Companion

object Companion

Functions

coerce
Link copied to clipboard
common
inline fun <T, R : Dimension, C : Dimension> coerce(structure: Structure2D<T>): DMatrix<T, R, C>
Coerces a regular matrix to a matrix with type-safe dimensions and throws an error if coercion failed
coerceUnsafe
Link copied to clipboard
common
fun <T, R : Dimension, C : Dimension> coerceUnsafe(structure: Structure2D<T>): DMatrix<T, R, C>
The same as DMatrix.coerce but without dimension checks.

Sources

common source
Link copied to clipboard