TensorPrimitives.BitwiseOr 方法

定义

重载

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

计算指定张量中的按位数字的按位 OR。

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

计算指定张量中的按位数字的按位 OR。

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

Source:
TensorPrimitives.BitwiseOr.cs

计算指定张量中的按位数字的按位 OR。

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

类型参数

T

参数

x
ReadOnlySpan<T>

第一个张量,表示为范围。

y
ReadOnlySpan<T>

第二个张量,表示为范围。

destination
Span<T>

目标张量,表示为范围。

例外

ydestination 引用重叠的内存位置,并且不在同一位置开始。

注解

此方法有效地计算 destination[i] = x[i] | y[i]

适用于

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

Source:
TensorPrimitives.BitwiseOr.cs

计算指定张量中的按位数字的按位 OR。

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

类型参数

T

参数

x
ReadOnlySpan<T>

第一个张量,表示为范围。

y
T

第二个张量,表示为标量。

destination
Span<T>

目标张量,表示为范围。

例外

xdestination 引用重叠的内存位置,并且不在同一位置开始。

注解

此方法有效地计算 destination[i] = x[i] | y

适用于