Lenguaje

TensorPrimitives.IsOddIntegerAll<T>(ReadOnlySpan<T>) Método

Definición

Calcula si todos los valores del tensor especificado son números enteros impares.

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

Parámetros de tipo

T

Parámetros

x
ReadOnlySpan<T>

Tensor, representado como un intervalo.

Devoluciones

true es si todos los valores de x son números enteros impares; en caso contrario, falsees . Si x está vacío, false se devuelve.

Se aplica a