Share via


TensorPrimitives.BitwiseOr Method

Definition

Overloads

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

Computes the element-wise bitwise OR of numbers in the specified tensors.

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

Computes the element-wise bitwise OR of numbers in the specified tensors.

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

Source:
TensorPrimitives.BitwiseOr.cs
Source:
TensorPrimitives.BitwiseOr.cs

Computes the element-wise bitwise OR of numbers in the specified tensors.

public:
generic <typename T>
 where T : System::Numerics::IBitwiseOperators<T, T, T> static void BitwiseOr(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination);
public static void BitwiseOr<T> (ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) where T : System.Numerics.IBitwiseOperators<T,T,T>;
static member BitwiseOr : 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 BitwiseOr(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

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

Source:
TensorPrimitives.BitwiseOr.cs
Source:
TensorPrimitives.BitwiseOr.cs

Computes the element-wise bitwise OR of numbers in the specified tensors.

public:
generic <typename T>
 where T : System::Numerics::IBitwiseOperators<T, T, T> static void BitwiseOr(ReadOnlySpan<T> x, T y, Span<T> destination);
public static void BitwiseOr<T> (ReadOnlySpan<T> x, T y, Span<T> destination) where T : System.Numerics.IBitwiseOperators<T,T,T>;
static member BitwiseOr : 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 BitwiseOr(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