Method FillIndexed
val FillIndexed: Tensor<'T> -> int64 [] -> 'T -> unit
Fills the tensor with values returned by the specifed function.
Declaration
val FillIndexed: trgt:Tensor<'T> -> fn:int64 [] -> 'T -> unit
Parameters
Type | Name | Description |
---|---|---|
Tensor<'T> | trgt | The target tensor to fill. |
int64 [] -> 'T | fn | A function that takes the index of the element to fill and returns the corresponding value. |
Type Parameters
Name | Description |
---|---|
'T |
See Also
HostTensor.Parallel.FillIndexed``1