Method FillMap2
val FillMap2: Tensor<'T> -> 'TA -> 'TB -> 'T -> Tensor<'TA> -> Tensor<'TB> -> unit
Applies to specified function to all elements of the two tensors using the specified tensor as target using multiple threads.
Declaration
val FillMap2: trgt:Tensor<'T> -> fn:'TA -> 'TB -> 'T -> a:Tensor<'TA> -> b:Tensor<'TB> -> unit
Parameters
Type | Name | Description |
---|---|---|
Tensor<'T> | trgt | The output tensor to fill. |
'TA -> 'TB -> 'T | fn | A function that takes a value from the first input tensor and a value from the 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 |