Share via


TensorPrimitives.BitwiseAnd Method

Definition

Overloads

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

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

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

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

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

Source:
TensorPrimitives.BitwiseAnd.cs
Source:
TensorPrimitives.BitwiseAnd.cs

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

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

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

Source:
TensorPrimitives.BitwiseAnd.cs
Source:
TensorPrimitives.BitwiseAnd.cs

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

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