Operator ( ~~~~ )
static member ( ~~~~ ): Tensor<bool> -> Tensor<bool>
Element-wise logical negation.
Declaration
static member ( ~~~~ ): a:Tensor<bool> -> Tensor<bool>
Parameters
Type | Name | Description |
---|---|---|
Tensor<bool> | a | The tensor to apply this operation to. |
Returns
Type | Description |
---|---|
Tensor<bool> | A new tensor containing the result of this operation. |
Remarks
Logically negates each element of the specified tensor and returns the results as a new tensor.
Examples
let a = HostTensor.ofList [true; false]
let b = ~~~~a // b = [false; true]