TensorPrimitives.IsOddIntegerAll<T>(ReadOnlySpan<T>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算指定張量中的所有值是否為奇整數。
public:
generic <typename T>
where T : System::Numerics::INumberBase<T> static bool IsOddIntegerAll(ReadOnlySpan<T> x);
public static bool IsOddIntegerAll<T>(ReadOnlySpan<T> x) where T : System.Numerics.INumberBase<T>;
static member IsOddIntegerAll : ReadOnlySpan<'T (requires 'T :> System.Numerics.INumberBase<'T>)> -> bool (requires 'T :> System.Numerics.INumberBase<'T>)
Public Shared Function IsOddIntegerAll(Of T As INumberBase(Of T)) (x As ReadOnlySpan(Of T)) As Boolean
類型參數
- T
參數
張量以跨度表示。
傳回
true 若 中 x 所有值皆為奇整數;否則, false。
若 x 為空,則 false 返回。