checkShape

open fun checkShape(other: F64Array): F64Array

Checks if the shape of the array matches the shape of another array.

Return

the other array if the shapes match, cast to F64FlatArray if both arrays are flat

Parameters

other

the other array

Throws

if the shapes do not match