语言

TensorPrimitives.IsOddIntegerAny<T>(ReadOnlySpan<T>) 方法

定义

计算指定张量中的任何值是否为奇数整数。

public:
generic <typename T>
 where T : System::Numerics::INumberBase<T> static bool IsOddIntegerAny(ReadOnlySpan<T> x);
public static bool IsOddIntegerAny<T>(ReadOnlySpan<T> x) where T : System.Numerics.INumberBase<T>;
static member IsOddIntegerAny : ReadOnlySpan<'T (requires 'T :> System.Numerics.INumberBase<'T>)> -> bool (requires 'T :> System.Numerics.INumberBase<'T>)
Public Shared Function IsOddIntegerAny(Of T As INumberBase(Of T)) (x As ReadOnlySpan(Of T)) As Boolean

类型参数

T

参数

x
ReadOnlySpan<T>

张量,表示为范围。

返回

如果任何一个值是奇数整数,则为 /&;否则为 。 如果 x 为空, false 则返回。

适用于