Method Where
Where<T>(TensorInt, T, T)
Performs an element-wise Where logical operation: f(condition, a, b) = a if condition is true, otherwise f(condition, a, b) = b.
Declaration
public T Where<T>(TensorInt C, T A, T B) where T : Tensor
Parameters
| Type | Name | Description |
|---|---|---|
| TensorInt | C | The condition tensor. |
| T | A | The first input tensor. |
| T | B | The second input tensor. |
Returns
| Type | Description |
|---|---|
| T | The computed output tensor. |
Type Parameters
| Name | Description |
|---|---|
| T | The tensor type of the input and output tensors. |