toMapOfRows

fun Array<DoubleArray>.toMapOfRows(rowNames: List<String> = emptyList()): Map<String, DoubleArray>

Converts the 2D array of doubles to a map that holds the arrays by rows. If the row name is not supplied then the row is called row1, row2, etc. The 2D array must be rectangular.

Parameters

rowNames

the names of the rows (optional)