TurboQuantBlock

data class TurboQuantBlock(val packedCodes: ByteArray, val scales: FloatArray, val seed: Int, val bits: Int, val elementCount: Int, val residual: EncodedResidual? = null)(source)

A single TurboQuant-encoded block.

Contains all data needed to reconstruct the original float vector.

Constructors

Link copied to clipboard
constructor(packedCodes: ByteArray, scales: FloatArray, seed: Int, bits: Int, elementCount: Int, residual: EncodedResidual? = null)

Properties

Link copied to clipboard
val bits: Int

Bits per code.

Link copied to clipboard

Number of logical float elements.

Link copied to clipboard
Link copied to clipboard

Bit-packed quantization codes.

Link copied to clipboard

Optional QJL residual (null for PolarOnly).

Link copied to clipboard

Per-group scale factors.

Link copied to clipboard
val seed: Int

Rotation seed for reproducibility.

Link copied to clipboard

Total bytes used by this block.

Functions

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