package
Version:
v0.0.0-...-3c9b827
Opens a new window with list of versions in this module.
Published: Apr 20, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package vec32 provides operations on float32 vectors.
Add adds b to a.
Add panics if the vector lengths are unequal.
Bytes serializes vec into a byte slice.
Dot returns the dot product of a and b.
Dot panics if the vector lengths are unequal.
FromBytes converts a byte slice into slice of float32.
Norm returns the Euclidean norm of a.
Normalize converts a to its unit vector.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.