hash

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 1 Imported by: 11

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)

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

Functions

func Hash

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

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