Share via


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

Definition

Computes whether any of the values in the specified tensor is a naN.

public:
generic <typename T>
 where T : System::Numerics::INumberBase<T> static bool IsNaNAny(ReadOnlySpan<T> x);
public static bool IsNaNAny<T>(ReadOnlySpan<T> x) where T : System.Numerics.INumberBase<T>;
static member IsNaNAny : ReadOnlySpan<'T (requires 'T :> System.Numerics.INumberBase<'T>)> -> bool (requires 'T :> System.Numerics.INumberBase<'T>)
Public Shared Function IsNaNAny(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 any of the values in x is a naN; otherwise, false. If x is empty, false is returned.

Applies to