Topics
| Installation | The Go binding links the prebuilt static NumKong library through cGo, so programs carry it whole. |
|---|---|
| Quickstart | |
| Highlights | Slice-based API. |
| Scalar Types2 | |
| Dot Products4 | Dot products cover float64, float32, int8, and uint8. |
| Dense Distances12 | The dense distance family includes squared Euclidean, Euclidean, and angular distance. |
| Set Similarity5 | Hamming and Jaccard distances for binary and set-hash vectors. |
| Probability Metrics4 | Kullback-Leibler divergence and Jensen-Shannon distance for probability distributions. |
| Geospatial Metrics2 | The Go package also exposes Haversine and Vincenty helpers, from every point of one set to every point of another. |
| Matrix Kernels67 | Packed kernels are the main batch-throughput path. |
| MaxSim7 | MaxSim is the late-interaction primitive used by systems such as ColBERT. |
| Runtime Dispatch12 | A Device is the host CPU, from CPU(), or a GPU by its runtime's own ordinal, from NewDevice(DeviceCUDA, 0) and its DeviceROCm and DeviceMetal twins, counted by CountDevices. |
| Parallelism4 | WorkerPool provides pre-pinned goroutines with pre-configured SIMD state. |
| Platform Notes | This package is a cGo wrapper over the C library. |