doodle
Toggle table of contents
0.12.0
common
Target filter
common
Switch theme
Search in API
Skip to content
doodle
Core
/
io.nacular.doodle.utils
/
squareMatrixOf
square
Matrix
Of
@
JvmName
(
name
=
"squareMatrixOfI"
)
fun
squareMatrixOf
(
size
:
Int
,
init
:
(
row
:
Int
,
col
:
Int
)
->
Int
)
:
SquareMatrix
<
Int
>
(
source
)
@
JvmName
(
name
=
"squareMatrixOfF"
)
fun
squareMatrixOf
(
size
:
Int
,
init
:
(
row
:
Int
,
col
:
Int
)
->
Float
)
:
SquareMatrix
<
Float
>
(
source
)
@
JvmName
(
name
=
"squareMatrixOfD"
)
fun
squareMatrixOf
(
size
:
Int
,
init
:
(
row
:
Int
,
col
:
Int
)
->
Double
)
:
SquareMatrix
<
Double
>
(
source
)
@
JvmName
(
name
=
"squareMatrixOfL"
)
fun
squareMatrixOf
(
size
:
Int
,
init
:
(
row
:
Int
,
col
:
Int
)
->
Long
)
:
SquareMatrix
<
Long
>
(
source
)
Creates an NxN
SquareMatrix
, where N ==
size
.
Parameters
size
of N
init
operation to get each value at row, col