kmath-dimensions
/
space.kscience.kmath.dimensions
/
DMatrix
/
Companion
common
Companion
object
Companion
Content copied to clipboard
Functions
Sources
Functions
coerce
Link copied to clipboard
common
inline fun <
T
,
R
:
Dimension
,
C
:
Dimension
>
coerce
(structure:
Structure2D
<
T
>):
DMatrix
<
T
,
R
,
C
>
Content copied to clipboard
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
>
Content copied to clipboard
The same as
DMatrix.coerce
but without dimension checks.
Sources
common source
Link copied to clipboard