Help us shape the future of Go! Take the 2026 Go Developer Survey

slices

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT-0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SumUint8

func SumUint8(x, y []uint8)

SumUint8 sums pairs of by index from x and y, similar to python's zip routine. If available AVX instructions will be used to operate on many uint8s simultaneously.

Results are returned in the x slice and y is left unaltered. If x and y differ in size only len(x) elements will be processed.

func SumUint16

func SumUint16(x []uint16, y []uint16)

SumUint16 sums pairs of by index from x and y, similar to python's zip routine. If available AVX instructions will be used to operate on many uint16s simultaneously.

Results are returned in the x slice and y is left unaltered. If x and y differ in size only len(x) elements will be processed.

func SumUint32

func SumUint32(x []uint32, y []uint32)

SumUint32 sums pairs of by index from x and y, similar to python's zip routine. If available AVX instructions will be used to operate on many uint32s simultaneously.

Results are returned in the x slice and y is left unaltered. If x and y differ in size only len(x) elements will be processed.

func SumUint64

func SumUint64(x []uint64, y []uint64)

SumUint64 sums pairs of by index from x and y, similar to python's zip routine. If available AVX instructions will be used to operate on many uint64s simultaneously.

Results are returned in the x slice and y is left unaltered. If x and y differ in size only len(x) elements will be processed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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