Method Where
Where(TensorInt, Tensor, Tensor, Tensor)
Performs an element-wise Where
logical operation: f(condition, a, b) = a if condition
is true
, otherwise f(condition, a, b) = b.
Declaration
void Where(TensorInt C, Tensor A, Tensor B, Tensor O)
Parameters
Type | Name | Description |
---|---|---|
TensorInt | C | The condition tensor. |
Tensor | A | The first input tensor. |
Tensor | B | The second input tensor. |
Tensor | O | The output tensor to be computed and filled. |