java.lang.Object
org.elasticsearch.simdvec.internal.Similarities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatcosineI8(MemorySegment a, MemorySegment b, int length) static longdotProductD1Q1(MemorySegment a, MemorySegment query, int length) static voiddotProductD1Q1Bulk(MemorySegment a, MemorySegment query, int length, int count, MemorySegment scores) static voiddotProductD1Q1BulkWithOffsets(MemorySegment a, MemorySegment query, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) static longdotProductD1Q4(MemorySegment a, MemorySegment query, int length) static voiddotProductD1Q4Bulk(MemorySegment a, MemorySegment query, int length, int count, MemorySegment scores) static voiddotProductD1Q4BulkSparse(MemorySegment addresses, MemorySegment query, int length, int count, MemorySegment scores) static voiddotProductD1Q4BulkWithOffsets(MemorySegment a, MemorySegment query, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) static longdotProductD2Q4(MemorySegment a, MemorySegment query, int length) static voiddotProductD2Q4Bulk(MemorySegment a, MemorySegment query, int length, int count, MemorySegment scores) static voiddotProductD2Q4BulkSparse(MemorySegment addresses, MemorySegment query, int length, int count, MemorySegment scores) static voiddotProductD2Q4BulkWithOffsets(MemorySegment a, MemorySegment query, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) static longdotProductD2Q4Packed(MemorySegment a, MemorySegment query, int length) static voiddotProductD2Q4PackedBulk(MemorySegment a, MemorySegment query, int length, int count, MemorySegment scores) static voiddotProductD2Q4PackedBulkWithOffsets(MemorySegment a, MemorySegment query, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) static longdotProductD4Q4(MemorySegment a, MemorySegment query, int length) static voiddotProductD4Q4Bulk(MemorySegment a, MemorySegment query, int length, int count, MemorySegment scores) static voiddotProductD4Q4BulkSparse(MemorySegment addresses, MemorySegment query, int length, int count, MemorySegment scores) static voiddotProductD4Q4BulkWithOffsets(MemorySegment a, MemorySegment query, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) static floatdotProductDBF16QBF16(MemorySegment a, MemorySegment b, int length) static floatdotProductDBF16QF32(MemorySegment a, MemorySegment b, int length) static voiddotProductDBF16QF32Bulk(MemorySegment vectors, MemorySegment query, int dimensions, int count, MemorySegment scores) static floatdotProductF32(MemorySegment a, MemorySegment b, int length) static voiddotProductF32Bulk(MemorySegment vectors, MemorySegment query, int dimensions, int count, MemorySegment scores) static intdotProductI4(MemorySegment unpacked, MemorySegment packed, int packedLen) static voiddotProductI4Bulk(MemorySegment a, MemorySegment b, int packedLen, int count, MemorySegment scores) static voiddotProductI4BulkWithOffsets(MemorySegment a, MemorySegment b, int packedLen, int pitch, MemorySegment offsets, int count, MemorySegment scores) static intdotProductI7u(MemorySegment a, MemorySegment b, int length) static voiddotProductI7uBulk(MemorySegment a, MemorySegment b, int length, int count, MemorySegment scores) static voiddotProductI7uBulkWithOffsets(MemorySegment a, MemorySegment b, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) static floatdotProductI8(MemorySegment a, MemorySegment b, int length) static voiddotProductI8Bulk(MemorySegment a, MemorySegment b, int length, int count, MemorySegment scores) static floatsquareDistanceDBF16QBF16(MemorySegment a, MemorySegment b, int length) static floatsquareDistanceDBF16QF32(MemorySegment a, MemorySegment b, int length) static floatsquareDistanceF32(MemorySegment a, MemorySegment b, int length) static floatsquareDistanceI8(MemorySegment a, MemorySegment b, int length)
-
Constructor Details
-
Similarities
public Similarities()
-
-
Method Details
-
dotProductI7u
-
dotProductI7uBulk
public static void dotProductI7uBulk(MemorySegment a, MemorySegment b, int length, int count, MemorySegment scores) -
dotProductI7uBulkWithOffsets
public static void dotProductI7uBulkWithOffsets(MemorySegment a, MemorySegment b, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) -
dotProductI4
-
dotProductI4Bulk
public static void dotProductI4Bulk(MemorySegment a, MemorySegment b, int packedLen, int count, MemorySegment scores) -
dotProductI4BulkWithOffsets
public static void dotProductI4BulkWithOffsets(MemorySegment a, MemorySegment b, int packedLen, int pitch, MemorySegment offsets, int count, MemorySegment scores) -
cosineI8
-
dotProductI8
-
dotProductI8Bulk
public static void dotProductI8Bulk(MemorySegment a, MemorySegment b, int length, int count, MemorySegment scores) -
squareDistanceI8
-
dotProductD1Q4
-
dotProductD1Q4Bulk
public static void dotProductD1Q4Bulk(MemorySegment a, MemorySegment query, int length, int count, MemorySegment scores) -
dotProductD1Q4BulkWithOffsets
public static void dotProductD1Q4BulkWithOffsets(MemorySegment a, MemorySegment query, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) -
dotProductD1Q4BulkSparse
public static void dotProductD1Q4BulkSparse(MemorySegment addresses, MemorySegment query, int length, int count, MemorySegment scores) -
dotProductD1Q1
-
dotProductD1Q1Bulk
public static void dotProductD1Q1Bulk(MemorySegment a, MemorySegment query, int length, int count, MemorySegment scores) -
dotProductD1Q1BulkWithOffsets
public static void dotProductD1Q1BulkWithOffsets(MemorySegment a, MemorySegment query, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) -
dotProductD2Q4
-
dotProductD2Q4Bulk
public static void dotProductD2Q4Bulk(MemorySegment a, MemorySegment query, int length, int count, MemorySegment scores) -
dotProductD2Q4BulkWithOffsets
public static void dotProductD2Q4BulkWithOffsets(MemorySegment a, MemorySegment query, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) -
dotProductD2Q4BulkSparse
public static void dotProductD2Q4BulkSparse(MemorySegment addresses, MemorySegment query, int length, int count, MemorySegment scores) -
dotProductD2Q4Packed
-
dotProductD2Q4PackedBulk
public static void dotProductD2Q4PackedBulk(MemorySegment a, MemorySegment query, int length, int count, MemorySegment scores) -
dotProductD2Q4PackedBulkWithOffsets
public static void dotProductD2Q4PackedBulkWithOffsets(MemorySegment a, MemorySegment query, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) -
dotProductD4Q4
-
dotProductD4Q4Bulk
public static void dotProductD4Q4Bulk(MemorySegment a, MemorySegment query, int length, int count, MemorySegment scores) -
dotProductD4Q4BulkWithOffsets
public static void dotProductD4Q4BulkWithOffsets(MemorySegment a, MemorySegment query, int length, int pitch, MemorySegment offsets, int count, MemorySegment scores) -
dotProductD4Q4BulkSparse
public static void dotProductD4Q4BulkSparse(MemorySegment addresses, MemorySegment query, int length, int count, MemorySegment scores) -
dotProductDBF16QF32
-
dotProductDBF16QF32Bulk
public static void dotProductDBF16QF32Bulk(MemorySegment vectors, MemorySegment query, int dimensions, int count, MemorySegment scores) -
squareDistanceDBF16QF32
-
dotProductDBF16QBF16
-
squareDistanceDBF16QBF16
-
dotProductF32
-
dotProductF32Bulk
public static void dotProductF32Bulk(MemorySegment vectors, MemorySegment query, int dimensions, int count, MemorySegment scores) -
squareDistanceF32
-