Method FillMapIndexed
val FillMapIndexed: Tensor<'T> -> int64 [] -> 'TA -> 'T -> Tensor<'TA> -> unit
Applies to specified indexed function to all elements of the tensor using the specified tensor as target using multiple threads.
Declaration
val FillMapIndexed: trgt:Tensor<'T> -> fn:int64 [] -> 'TA -> 'T -> a:Tensor<'TA> -> unit
Parameters
Type | Name | Description |
---|---|---|
Tensor<'T> | trgt | The output tensor to fill. |
int64 [] -> 'TA -> 'T | fn | A function that takes an index and the corresponding value from the input tensor and returns the corresponding output value. |
Tensor<'TA> | a | The input tensor. |
Type Parameters
Name | Description |
---|---|
'T | The type of the data. |
'TA |