Sdílet prostřednictvím


TensorPrimitives.BitwiseAnd Metoda

Definice

Přetížení

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

Vypočítá bitové bitové operátory A prvku v zadaných tensorech.

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

Vypočítá bitové bitové operátory A prvku v zadaných tensorech.

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

Zdroj:
TensorPrimitives.BitwiseAnd.cs
Zdroj:
TensorPrimitives.BitwiseAnd.cs

Vypočítá bitové bitové operátory A prvku v zadaných tensorech.

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))

Parametry typu

T

Parametry

x
ReadOnlySpan<T>

První tensor, reprezentovaný jako rozpětí.

y
ReadOnlySpan<T>

Druhý tensor, reprezentovaný jako rozpětí.

destination
Span<T>

Cílový tensor, reprezentovaný jako rozpětí.

Výjimky

y a destination odkazují na překrývající se umístění paměti a nezačínají ve stejném umístění.

Poznámky

Tato metoda efektivně vypočítá destination[i] = x[i] & y[i].

Platí pro

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

Zdroj:
TensorPrimitives.BitwiseAnd.cs
Zdroj:
TensorPrimitives.BitwiseAnd.cs

Vypočítá bitové bitové operátory A prvku v zadaných tensorech.

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))

Parametry typu

T

Parametry

x
ReadOnlySpan<T>

První tensor, reprezentovaný jako rozpětí.

y
T

Druhý tenzor, reprezentovaný jako skalární.

destination
Span<T>

Cílový tensor, reprezentovaný jako rozpětí.

Výjimky

x a destination odkazují na překrývající se umístění paměti a nezačínají ve stejném umístění.

Poznámky

Tato metoda efektivně vypočítá destination[i] = x[i] & y.

Platí pro