FZGPUModules 1.0
GPU-accelerated modular compression pipeline
Loading...
Searching...
No Matches
fz::QuantizerStage< TInput, TCode >::Config Struct Reference

#include <quantizer.h>

Public Attributes

float error_bound = 1e-4f
 Error bound (interpretation set by eb_mode).
 
int quant_radius = 32768
 Quantization radius.
 
float outlier_capacity = 0.05f
 Fraction of input size reserved for outliers.
 
float precomputed_value_base = 0.0f
 Pre-computed value_base > 0 to skip the NOA data scan; 0 = auto.
 
bool zigzag_codes = false
 
float outlier_threshold = std::numeric_limits<float>::infinity()
 ABS/NOA: |x| >= threshold → lossless outlier (LC reference threshold). Default: ∞.
 
bool inplace_outliers = false
 

Detailed Description

template<typename TInput = float, typename TCode = uint16_t>
struct fz::QuantizerStage< TInput, TCode >::Config

Construction parameters.

Member Data Documentation

◆ zigzag_codes

template<typename TInput = float, typename TCode = uint16_t>
bool fz::QuantizerStage< TInput, TCode >::Config::zigzag_codes = false

ABS/NOA: zigzag-encode codes before storage to improve compressibility. No effect in REL mode (log-space codes are already unsigned).

◆ inplace_outliers

template<typename TInput = float, typename TCode = uint16_t>
bool fz::QuantizerStage< TInput, TCode >::Config::inplace_outliers = false

ABS/NOA: write outlier raw float bits in-place in the codes array. Removes the scatter buffers; inverse checks (code >> 1) >= quant_radius. Must NOT be used with REL mode.