pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: ivanstepanovftw (@ivanstepanovftw) <noreply+ivanstepanovftw@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #709: Shouldn't there be `restrict` keyword at parameters in `VectorInnerProduct()`?
Date: Thu, 07 Nov 2024 18:01:41 +0000
Message-ID: <gh-pgvector-pgvector-709@github.com> (raw)

https://github.com/pgvector/pgvector/blob/2627c5ff775ae6d7aef0c430121ccf857842d2f2/src/vector.c#L592...

```diff
-VectorInnerProduct(int dim, float *ax, float *bx)
+VectorInnerProduct(int dim, float *const restrict ax, float *const restrict bx)
```

https://en.wikipedia.org/wiki/Restrict


view thread (11+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-709@github.com>
Permalink:  ../gh-pgvector-pgvector-709@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox