语言

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

定义

计算指定张量中的所有值是否都是奇数整数。

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

参数

x
ReadOnlySpan<T>

张量,表示为范围。

返回

true 如果所有值 x 都是奇数整数,则为 ;否则为 false。 如果 x 为空, false 则返回。

适用于