Base-class for quantized float leaf nodes.
More...
#include <nanovdb/NanoVDB.h>
Inherited by LeafData< Fp16, CoordT, MaskT, LOG2DIM >, LeafData< Fp4, CoordT, MaskT, LOG2DIM >, LeafData< Fp8, CoordT, MaskT, LOG2DIM >, and LeafData< FpN, CoordT, MaskT, LOG2DIM >.
template<typename CoordT, template< uint32_t > class MaskT, uint32_t LOG2DIM>
struct nanovdb::LeafFnBase< CoordT, MaskT, LOG2DIM >
Base-class for quantized float leaf nodes.
return the quantized average of the active values in this node
return the quantized standard deviation of the active values in this node
- Note
- 0 <= StdDev <= max-min or 0 <= StdDev/(max-min) <= 1
return the quantized maximum of the active values in this node
return the quantized minimum of the active values in this node
__hostdev__ void init |
( |
float |
min, |
|
|
float |
max, |
|
|
uint8_t |
bitWidth |
|
) |
| |
|
inline |
Return padding of this class in bytes, due to aliasing and 32B alignment.
- Note
- The extra bytes are not necessarily at the end, but can come from aliasing of individual data members.
- Note
- min <= avg <= max or 0 <= (avg-min)/(min-max) <= 1
- Note
- 0 <= StdDev <= max-min or 0 <= StdDev/(max-min) <= 1
- Note
- min <= X <= max or 0 <= (X-min)/(min-max) <= 1
- Note
- min <= X <= max or 0 <= (X-min)/(min-max) <= 1
MaskT<LOG2DIM> mValueMask |