fill
fun fill(rows:
Int
, cols:
Int
, func: (
Int
,
Int
) ->
Double
):
Matrix
<
Double
>
Creates a new matrix that fills all the values with the return values of func(row,val)
fun <T> fill(rows:
Int
, cols:
Int
, dtype:
MatrixType
<
T
>, func: (
Int
,
Int
) ->
T
):
Matrix
<
T
>
fun <T> fill(rows:
Int
, cols:
Int
, value:
T
, dtype:
MatrixType
<
T
>):
Matrix
<
T
>``fun fill(rows:
Int
, cols:
Int
, value:
Double
):
Matrix
<
Double
>
Creates a new matrix that fills all the values with value