column

fun column(k: Int, matrix: Array<IntArray>): IntArray
fun column(k: Int, matrix: Array<LongArray>): LongArray

Return

a copy of the extracted column

Parameters

k

the kth column to be extracted (zero based indexing)

matrix

must not be null, assumed 2D rectangular array (i.e. all rows have the same number of columns)


inline fun <T> column(index: Int, matrix: Array<Array<T>>): Array<T>

Return

a copy of the extracted column

Parameters

index

the column to be extracted (zero based indexing)

matrix

must not be null, assumed 2D rectangular array (i.e. all rows have the same number of columns)