Method FillMapIndexed2
val FillMapIndexed2: Tensor<'T> -> int64 [] -> 'TA -> 'TB -> 'T -> Tensor<'TA> -> Tensor<'TB> -> unit
Applies to specified indexed function to all elements of the two tensors using the specified tensor as target.
Declaration
val FillMapIndexed2: trgt:Tensor<'T> -> fn:int64 [] -> 'TA -> 'TB -> 'T -> a:Tensor<'TA> -> b:Tensor<'TB> -> unit
Parameters
Type | Name | Description |
---|---|---|
Tensor<'T> | trgt | The output tensor to fill. |
int64 [] -> 'TA -> 'TB -> 'T | fn | A function that takes an index, the corresponding value from the first input and second input tensor and returns the corresponding output value. |
Tensor<'TA> | a | The first input tensor. |
Tensor<'TB> | b | The second input tensor. |
Type Parameters
Name | Description |
---|---|
'T | The type of the data. |
'TA | |
'TB |
See Also
HostTensor.Parallel.FillMapIndexed2``3