coerce

inline fun <T, R : Dimension, C : Dimension> coerce(structure: Structure2D<T>): DMatrix<T, R, C>(source)

Coerces a regular matrix to a matrix with type-safe dimensions and throws an error if coercion failed