Edit

Share via


TensorPrimitives.PopCount Method

Definition

Overloads

PopCount<T>(ReadOnlySpan<T>)
PopCount<T>(ReadOnlySpan<T>, Span<T>)

PopCount<T>(ReadOnlySpan<T>)

Source:
TensorPrimitives.PopCount.cs
public:
generic <typename T>
 where T : System::Numerics::IBinaryInteger<T> static long PopCount(ReadOnlySpan<T> x);
public static long PopCount<T> (ReadOnlySpan<T> x) where T : System.Numerics.IBinaryInteger<T>;
static member PopCount : ReadOnlySpan<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> -> int64 (requires 'T :> System.Numerics.IBinaryInteger<'T>)
Public Shared Function PopCount(Of T As IBinaryInteger(Of T)) (x As ReadOnlySpan(Of T)) As Long

Type Parameters

T

Parameters

Returns

Applies to

PopCount<T>(ReadOnlySpan<T>, Span<T>)

Source:
TensorPrimitives.PopCount.cs
Source:
TensorPrimitives.PopCount.cs
public:
generic <typename T>
 where T : System::Numerics::IBinaryInteger<T> static void PopCount(ReadOnlySpan<T> x, Span<T> destination);
public static void PopCount<T> (ReadOnlySpan<T> x, Span<T> destination) where T : System.Numerics.IBinaryInteger<T>;
static member PopCount : ReadOnlySpan<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> * Span<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> -> unit (requires 'T :> System.Numerics.IBinaryInteger<'T>)
Public Shared Sub PopCount(Of T As IBinaryInteger(Of T)) (x As ReadOnlySpan(Of T), destination As Span(Of T))

Type Parameters

T

Parameters

destination
Span<T>

Applies to