Skip to content

Normalized Vector (logical refinement type)#7572

Draft
connortsui20 wants to merge 1 commit intodevelopfrom
ct/normalized-vector
Draft

Normalized Vector (logical refinement type)#7572
connortsui20 wants to merge 1 commit intodevelopfrom
ct/normalized-vector

Conversation

@connortsui20
Copy link
Copy Markdown
Contributor

@connortsui20 connortsui20 commented Apr 20, 2026

Summary

Tracking issue: #7297

Adds a new NormalizedVector logical extension type, which is a refinement type of Vector where all vectors are unit-normalized (with some tolerance).

It is unclear if there is a better way to represent refinement types in the Vortex type system, as there is a lot of boilerplate code that we need to add just to support this relatively simple invariant.

Testing

Basic testing.

@connortsui20 connortsui20 added the changelog/feature A new feature label Apr 20, 2026
@connortsui20 connortsui20 force-pushed the ct/normalized-vector branch from e668de0 to 6a3dd6e Compare April 20, 2026 17:31
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 20, 2026

Merging this PR will not alter performance

✅ 1163 untouched benchmarks
⏩ 1462 skipped benchmarks1


Comparing ct/normalized-vector (75b0ce9) with develop (9fe20c5)

Open in CodSpeed

Footnotes

  1. 1462 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@connortsui20 connortsui20 force-pushed the ct/normalized-vector branch from 6a3dd6e to 32ea0f0 Compare April 20, 2026 18:13
@connortsui20 connortsui20 changed the base branch from develop to ct/move-tensor-types April 20, 2026 18:18
Base automatically changed from ct/move-tensor-types to develop April 20, 2026 18:21
@connortsui20 connortsui20 force-pushed the ct/normalized-vector branch 3 times, most recently from d8d4a31 to 1d99175 Compare April 20, 2026 20:46
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
@connortsui20 connortsui20 force-pushed the ct/normalized-vector branch from 1d99175 to 75b0ce9 Compare April 20, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant