getDimsOfArray

fun getDimsOfArray(data: Array<*>): LongArray

Get shape of array of arrays (of arrays...) of Array of elements of any type. If the most inner array does not have any elements its size is skipped in the result.