Skip to content

Commit da75d1e

Browse files
committed
docs(rotsq): clarify provenance wording in header comment
The header referenced the license identifier of a third-party library's bundled dependency while explaining that the implementation deliberately does not use that library. License scanners match the bare identifier string and misclassify the file. Reword to state provenance directly: written from the published papers, nothing vendored or derived. Comment-only change; also picks up the formatter pass on this file. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 4ba44a9 commit da75d1e

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/semantic/rotsq.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
*
44
* Implements the core of Extended RaBitQ (Gao et al., SIGMOD 2024/2025;
55
* arXiv:2405.12497, arXiv:2409.09913) without the reference library (which is
6-
* C++ and bundles Eigen/MPL-2.0). Named rotsq, not rabitq: this is the
6+
* C++ and bundles the Eigen linear-algebra dependency; nothing here is vendored
7+
* or derived from it — this file is written from the papers). Named rotsq, not
8+
* rabitq: this is the
79
* FAMILY core (randomized rotation + per-vector scalar quantization + exact
810
* code-expansion estimator), not the papers' exact codebook construction —
911
* the name should not overclaim fidelity. Rotate each vector with a deterministic
@@ -34,10 +36,10 @@
3436
#include <stdint.h>
3537

3638
enum {
37-
CBM_RSQ_IN_DIM = 768, /* input dimension (CBM_SEM_DIM) */
38-
CBM_RSQ_DIM = 1024, /* padded pow2 rotation dimension */
39-
CBM_RSQ_BITS = 4, /* bits per coordinate */
40-
CBM_RSQ_LEVELS = 15, /* (1 << CBM_RSQ_BITS) - 1 */
39+
CBM_RSQ_IN_DIM = 768, /* input dimension (CBM_SEM_DIM) */
40+
CBM_RSQ_DIM = 1024, /* padded pow2 rotation dimension */
41+
CBM_RSQ_BITS = 4, /* bits per coordinate */
42+
CBM_RSQ_LEVELS = 15, /* (1 << CBM_RSQ_BITS) - 1 */
4143
CBM_RSQ_CODE_BYTES = CBM_RSQ_DIM / 2, /* two 4-bit codes per byte */
4244
};
4345

0 commit comments

Comments
 (0)