Repository navigation
Commit 803a3dc
authored
Replace normalized encoding with explicit normalization (#9767)
## Summary
- Tracking Issue: #6865
Replaces the `Normalized` physical encoding with an explicit
`L2Normalize` scalar function. `L2Norm` returns only the magnitude,
while `L2Normalize` returns a struct containing the normalized value and
the same norm.
## Changes
Computes normalization in one pass with the same left-to-right norm
kernel used by `L2Norm`. Removes encoding-specific L2 norm,
inner-product, and cosine shortcuts so these operations always derive
results from decoded coordinates. Tests cover vectors, tensors, nulls,
zero rows, `f16`, non-finite values, overflow, underflow, persistence,
and bitwise agreement between both norm results.
## API Changes
Removes the public `Normalized` encoding and compression scheme. Adds
`L2Normalize`, whose output is a nullable struct with non-nullable
`normalized` and `norm` fields.
Signed-off-by: Connor Tsui <[email protected]>1 parent 5c8c397 commit 803a3dc
22 files changed
Lines changed: 620 additions & 2742 deletions
File tree
- docs/specs
- vortex-tensor
- benches
- src
- encodings
- normalized
- scalar_fns
- vortex/editions/tensor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 51 | | |
56 | 52 | | |
57 | 53 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
This file was deleted.
0 commit comments