reshape

fun FloatArray.reshape(vararg dims: Int): FloatArray

Simulates a reshape operation on the FloatArray.

Since Kotlin/KMP arrays are flat, this primarily validates if the current size matches the expectedSize calculated from dims.

Throws

if the size does not match.