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 则返回。