Tensor.OnesComplement(ReadOnlyTensorSpan<TScalar>) Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs a one's complement on a tensor.
public:
static System::Numerics::Tensors::Tensor<TScalar> ^ operator ~(System::Numerics::Tensors::ReadOnlyTensorSpan<TScalar> % tensor);
public static System.Numerics.Tensors.Tensor<TScalar> operator ~(in System.Numerics.Tensors.ReadOnlyTensorSpan<TScalar> tensor);
static member op_OnesComplement : ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'TScalar (requires 'TScalar :> System.Numerics.IBitwiseOperators<'TScalar, 'TScalar, 'TScalar>)>
Public Shared Operator Not (ByRef tensor As ReadOnlyTensorSpan(Of TScalar)) As Tensor(Of TScalar)
Parameters
- tensor
- ReadOnlyTensorSpan<TScalar>
The tensor to one's complement.
Returns
A new tensor containing the result of ~tensor.