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

Definição

Calcula se algum dos valores no tensor especificado é negativo.

public:
generic <typename T>
 where T : System::Numerics::INumberBase<T> static bool IsNegativeAny(ReadOnlySpan<T> x);
public static bool IsNegativeAny<T>(ReadOnlySpan<T> x) where T : System.Numerics.INumberBase<T>;
static member IsNegativeAny : ReadOnlySpan<'T (requires 'T :> System.Numerics.INumberBase<'T>)> -> bool (requires 'T :> System.Numerics.INumberBase<'T>)
Public Shared Function IsNegativeAny(Of T As INumberBase(Of T)) (x As ReadOnlySpan(Of T)) As Boolean

Parâmetros de tipo

T

Parâmetros

x
ReadOnlySpan<T>

O tensor, representado como um intervalo.

Retornos

true se qualquer um dos valores em x for negativo; caso contrário, false. Se x estiver vazio, false será retornado.

Aplica-se a