coerce

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

Sources

common source
Link copied to clipboard