From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #709: Shouldn't there be `restrict` keyword at parameters in `VectorInnerProduct()`?
Date: Thu, 07 Nov 2024 21:57:23 +0000
Message-ID: <gh-pgvector-pgvector-709-c2463309484@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-709@github.com>
References: <gh-pgvector-pgvector-709@github.com>
Hi @ivanstepanovftw,
1. As far as I know, this doesn't enable additional optimizations
2. It's not clear to me that Postgres ensures function arguments (for `inner_product`, `vector_negative_inner_product`, etc.) won't ever point to the same vector (which would cause `ax` and `bx` to be the same)