語言

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>

張量以跨度表示。

傳回

true 若 中的 x 任一值為奇整數;否則, false。 若 x 為空,則 false 返回。

適用於