Share via


TensorPrimitives.Xor Method

Definition

Overloads

Xor<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>)

Computes the element-wise XOR of numbers in the specified tensors.

Xor<T>(ReadOnlySpan<T>, T, Span<T>)

Computes the element-wise XOR of numbers in the specified tensors.

Xor<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>)

Source:
TensorPrimitives.Xor.cs
Source:
TensorPrimitives.Xor.cs

Computes the element-wise XOR of numbers in the specified tensors.

public:
generic <typename T>
 where T : System::Numerics::IBitwiseOperators<T, T, T> static void Xor(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination);
public static void Xor<T> (ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) where T : System.Numerics.IBitwiseOperators<T,T,T>;
static member Xor : ReadOnlySpan<'T (requires 'T :> System.Numerics.IBitwiseOperators<'T, 'T, 'T>)> * ReadOnlySpan<'T (requires 'T :> System.Numerics.IBitwiseOperators<'T, 'T, 'T>)> * Span<'T (requires 'T :> System.Numerics.IBitwiseOperators<'T, 'T, 'T>)> -> unit (requires 'T :> System.Numerics.IBitwiseOperators<'T, 'T, 'T>)
Public Shared Sub Xor(Of T As IBitwiseOperators(Of T, T, T)) (x As ReadOnlySpan(Of T), y As ReadOnlySpan(Of T), destination As Span(Of T))

Type Parameters

T

Parameters

x
ReadOnlySpan<T>

The first tensor, represented as a span.

y
ReadOnlySpan<T>

The second tensor, represented as a span.

destination
Span<T>

The destination tensor, represented as a span.

Exceptions

y and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = x[i] ^ y[i].

Applies to

Xor<T>(ReadOnlySpan<T>, T, Span<T>)

Source:
TensorPrimitives.Xor.cs
Source:
TensorPrimitives.Xor.cs

Computes the element-wise XOR of numbers in the specified tensors.

public:
generic <typename T>
 where T : System::Numerics::IBitwiseOperators<T, T, T> static void Xor(ReadOnlySpan<T> x, T y, Span<T> destination);
public static void Xor<T> (ReadOnlySpan<T> x, T y, Span<T> destination) where T : System.Numerics.IBitwiseOperators<T,T,T>;
static member Xor : ReadOnlySpan<'T (requires 'T :> System.Numerics.IBitwiseOperators<'T, 'T, 'T>)> * 'T * Span<'T (requires 'T :> System.Numerics.IBitwiseOperators<'T, 'T, 'T>)> -> unit (requires 'T :> System.Numerics.IBitwiseOperators<'T, 'T, 'T>)
Public Shared Sub Xor(Of T As IBitwiseOperators(Of T, T, T)) (x As ReadOnlySpan(Of T), y As T, destination As Span(Of T))

Type Parameters

T

Parameters

x
ReadOnlySpan<T>

The first tensor, represented as a span.

y
T

The second tensor, represented as a scalar.

destination
Span<T>

The destination tensor, represented as a span.

Exceptions

x and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = x[i] ^ y.

Applies to