TensorPrimitives.IsOddIntegerAny<T>(ReadOnlySpan<T>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算指定張量中任一值是否為奇整數。
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
參數
張量以跨度表示。
傳回
true 若 中的 x 任一值為奇整數;否則, false。
若 x 為空,則 false 返回。