toggle menu
doodle
0.10.3
common
switch theme
search in API
core
/
io.nacular.doodle.utils
/
squareMatrixOf
square
Matrix
Of
common
@
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