QuantizedVector

data class QuantizedVector(val codes: ByteArray, val scales: FloatArray, val bits: Int)(source)

Result of scalar quantization: integer codes + per-group scales.

Constructors

Link copied to clipboard
constructor(codes: ByteArray, scales: FloatArray, bits: Int)

Properties

Link copied to clipboard
val bits: Int

Number of bits per code.

Link copied to clipboard

Signed integer codes, one per element. Values in -maxCode, maxCode.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Per-group scale factors (one per GROUP_SIZE elements).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int