Język

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

Definicja

Oblicza, czy wszystkie wartości w określonym tensor są nieparzyste liczby całkowite.

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

Parametry typu

T

Parametry

x
ReadOnlySpan<T>

Tensor, reprezentowany jako zakres.

Zwraca

true jeśli wszystkie wartości w elemecie x są nieparzyste liczby całkowite; w przeciwnym razie false. Jeśli x wartość jest pusta, false zostanie zwrócona.

Dotyczy