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

Definição

Calcula se algum dos valores no tensor especificado são potências de dois.

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

Parâmetros de Tipo Genérico

T

Parâmetros

x
ReadOnlySpan<T>

O tensor, representado como um vão.

Devoluções

true se algum dos valores em x forem potências de dois; caso contrário, false. Se x for vazio, false é devolvido.

Aplica-se a