Go package: brute_force
Sources: go/brute_force
Brute Force KNN Index
Source: go/brute_force/brute_force.go:14
Builds a new Brute Force KNN Index from the dataset for efficient search.
Resources - Resources to useDataset - A row-major matrix on either the host or device to indexmetric - Distance type to use for building the indexmetric_arg - Value of p for Minkowski distances - set to 2.0 if not applicableSource: go/brute_force/brute_force.go:48
Creates a new empty Brute Force KNN Index
Source: go/brute_force/brute_force.go:20
Perform a Nearest Neighbors search on the Index
Resources - Resources to usequeries - Tensor in device memory to query forneighbors - Tensor in device memory that receives the indices of the nearest neighborsdistances - Tensor in device memory that receives the distances of the nearest neighborsSource: go/brute_force/brute_force.go:72
Destroys the Brute Force KNN Index
Source: go/brute_force/brute_force.go:32