squareMatrixOf

@JvmName(name = "squareMatrixOfI")
fun squareMatrixOf(size: Int, init: (row: Int, col: Int) -> Int): SquareMatrix<Int>
@JvmName(name = "squareMatrixOfF")
fun squareMatrixOf(size: Int, init: (row: Int, col: Int) -> Float): SquareMatrix<Float>
@JvmName(name = "squareMatrixOfD")
fun squareMatrixOf(size: Int, init: (row: Int, col: Int) -> Double): SquareMatrix<Double>
@JvmName(name = "squareMatrixOfL")
fun squareMatrixOf(size: Int, init: (row: Int, col: Int) -> Long): SquareMatrix<Long>

Creates an NxN SquareMatrix, where N == size.

Parameters

size

of N

init

operation to get each value at row, col