Share via


TensorPrimitives.IsOddIntegerAll<T>(ReadOnlySpan<T>) Method

Definition

Computes whether all of the values in the specified tensor are odd integral numbers.

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

Type Parameters

T

Parameters

x
ReadOnlySpan<T>

The tensor, represented as a span.

Returns

true if all of the values in x are odd integral numbers; otherwise, false. If x is empty, false is returned.

Applies to