Documentation
¶
Index ¶
- Variables
- func CopyNode[TV interfaces.VectorType, TIX interfaces.IndexTypes](dst, src interfaces.Node[TV, TIX], size TIX)
- func DumpNode[TV interfaces.VectorType, TIX interfaces.IndexTypes](distance interfaces.Distance[TV, TIX], node interfaces.Node[TV, TIX]) string
- func GetPtr[TV interfaces.VectorType, TIX interfaces.IndexTypes](node interfaces.Node[TV, TIX]) unsafe.Pointer
- func InTesting() bool
- func Intersection[TIX interfaces.IndexTypes](a, b []TIX) []TIX
- func Max[T interfaces.IndexTypes](a, b T) T
- func Measure(f func()) (elapsed time.Duration)
- func MeasureWithReturn[T any](f func() T) (elapsed time.Duration, ret T)
- func Round(f float64) float64
- func RoundPlus(f float64, places int) float64
Constants ¶
This section is empty.
Variables ¶
View Source
var InTest bool
Functions ¶
func CopyNode ¶
func CopyNode[TV interfaces.VectorType, TIX interfaces.IndexTypes]( dst, src interfaces.Node[TV, TIX], size TIX, )
CopyNode copies the source node to the destination node. Note that the destination node must be of the same type and take up the same amount of memory as the source node.
func DumpNode ¶
func DumpNode[TV interfaces.VectorType, TIX interfaces.IndexTypes]( distance interfaces.Distance[TV, TIX], node interfaces.Node[TV, TIX], ) string
func GetPtr ¶
func GetPtr[TV interfaces.VectorType, TIX interfaces.IndexTypes]( node interfaces.Node[TV, TIX], ) unsafe.Pointer
func Intersection ¶
func Intersection[TIX interfaces.IndexTypes](a, b []TIX) []TIX
func Max ¶
func Max[T interfaces.IndexTypes](a, b T) T
func MeasureWithReturn ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.