diagonal

fun <N : Nat> diagonal(size: N, vararg data: Double): Matrix<N, N>(source)

Creates a matrix with data along the diagonal.