Companion

object Companion

Functions

Link copied to clipboard
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

Link copied to clipboard
fun <T, R : Dimension, C : Dimension> coerceUnsafe(structure: Structure2D<T>): DMatrix<T, R, C>

The same as DMatrix.coerce but without dimension checks. Use with caution.

Sources

Link copied to clipboard