| 42 | [[nodiscard]] T g_add() const { return G_add_; } |
| 43 | |
| 44 | void set_g_add(T dist) { |
| 45 | // For L2, dist is the compute by euclidean_sqr() |
| 46 | // For IP, dist is computed by dot_product_dist() i.e., 1 - dot_product() |
| 47 | G_add_ = dist; |
| 48 | } |
| 49 | |
| 50 | [[nodiscard]] const uint8_t* lut() const { return lookup_table_.lut(); } |
| 51 | }; |
no outgoing calls
no test coverage detected