benwtrent commented on code in PR #13321: URL: https://github.com/apache/lucene/pull/13321#discussion_r1579422728
########## lucene/core/src/java/org/apache/lucene/util/VectorUtil.java: ########## @@ -179,7 +179,30 @@ public static int int4DotProduct(byte[] a, byte[] b) { if (a.length != b.length) { throw new IllegalArgumentException("vector dimensions differ: " + a.length + "!=" + b.length); } - return IMPL.int4DotProduct(a, b); + return IMPL.int4DotProduct(a, false, b, false); + } + + /** + * Dot product computed over int4 (values between [0,15]) bytes. The second vector is considered + * "packed" (i.e. every two bytes represent a single value). The following packing is assumed: Review Comment: Yep. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org