radixsort32

package
v1.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is an option for the radix sorter constructor.

func MaxLen

func MaxLen(maxLen int) Option

MaxLen is maximum length of slice that can utilize buffers in pool, would use dynamic buffer allocation for larger slices

func MinLen

func MinLen(minLen int) Option

MinLen specifies minimum length of slice to use radix sort.

The radix sorter will use quick sort for shorter slices.

func Radix

func Radix(radix int) Option

Radix specifies the radix sorter's radix.

Radix may be 1, 2, 4, 8, or 16.

type RadixSorter32

type RadixSorter32 struct {
	// contains filtered or unexported fields
}

RadixSorter32 is a radix sorter for sorting []uint32

func New

func New(options ...Option) *RadixSorter32

New creates a radix sorter for sorting []uint32

func (*RadixSorter32) Sort

func (r *RadixSorter32) Sort(origin []uint32)

Sort sorts a slice of type []uint32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL