hash

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Overview

Package Hash implements the fast modular hash used by the Neurlang classifier

Index

Constants

This section is empty.

Variables

View Source
var HashVectorized func(out []uint32, n []uint32, s []uint32, max uint32) = hashNotVectorized

HashVectorized implement many Neurlang hashes in parallel, using something like AVX-512 or similar

View Source
var HashVectorizedDistinct func(out []uint32, n []uint32, s []uint32, max []uint32) = hashNotVectorizedDistinct

Functions

func Hash

func Hash(n uint32, s uint32, max uint32) uint32

func HashVectorizedParallelism added in v0.1.2

func HashVectorizedParallelism() int

HashVectorizedParallelism reports the recommended number of hashes to compute in parallel on this platform Can't return 0.

func StringHash added in v0.0.7

func StringHash(in uint32, str string) (out uint32)

func StringsHash added in v0.0.7

func StringsHash(in uint32, strs []string) (out uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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