展示HN:Hsdlib – 一款带有SIMD加速的向量相似性C库

1作者: habedi09 个月前原帖
Hsdlib是一个小型C库,用于快速计算向量之间的距离和相似性。<p>目前,它支持:<p><pre><code> - 欧几里得距离、曼哈顿距离和汉明距离 - 点积、余弦相似度和杰卡德相似度 </code></pre> Hsdlib使用SIMD加速(AVX、AVX2、AVX512、NEON和SVE指令)来提高计算速度。<p>GitHub链接:<a href="https:&#x2F;&#x2F;github.com&#x2F;habedi&#x2F;hsdlib">https:&#x2F;&#x2F;github.com&#x2F;habedi&#x2F;hsdlib</a>
查看原文
Hsdlib is a small C library for fast vector distance and similarity calculations.<p>At the moment, it supports:<p><pre><code> - Euclidean, Manhattan, and Hamming distances - Dot product, cosine, and Jaccard similarities </code></pre> Hsdlib uses SIMD acceleration (AVX, AVX2, AVX512, NEON, and SVE instructions) to speed things up.<p>GitHub link: <a href="https:&#x2F;&#x2F;github.com&#x2F;habedi&#x2F;hsdlib">https:&#x2F;&#x2F;github.com&#x2F;habedi&#x2F;hsdlib</a>