bfloats

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AVX512 = AVX2 | AVX512F | AVX512BW

Variables

This section is empty.

Functions

func Euclidean

func Euclidean(a, b []uint16) float32

func FromAny

func FromAny(v any) ([]uint16, bool)

func FromFloat32

func FromFloat32(a []float32) (ret []uint16)

func ToFloat32

func ToFloat32(a []uint16) (ret []float32)

Types

type Feature

type Feature uint64
const (
	AVX2 Feature = 1 << iota
	AVX512F
	AVX512BW
)

func (Feature) String

func (feature Feature) String() string

Jump to

Keyboard shortcuts

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