Repository navigation
Conversation
…ation layout - QuadTree/ -> LinearAlgebra/, QuadTree.Tests -> LinearAlgebra.Tests, QuadTree.Benchmark -> LinearAlgebra.Benchmark, QuadTree.sln -> LinearAlgebra.sln. - Units of measure move to the representation-neutral LinearAlgebra.Common; quad-tree code lives in LinearAlgebra/QuadTree/ as LinearAlgebra.QuadTree.*. - The quad-tree LinearAlgebra module is renamed to Operations. - No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- LinearAlgebra/COO: Common (merge/join/reduce helpers), Vector, Matrix,
Operations over sorted immutable lists, with units of measure throughout.
- Every operation has an ...Unsorted twin for hand-made fusion; sorted
vxm/vxmi_values/mxm reduce in ascending inner index so they match the
quad-tree even for non-commutative op_add.
- Graph.Impl.COO.{BFS,SSSP,TriangleCount} ops instances.
- Unit tests, FsCheck equivalence with the quad-tree, and regression tests
for the documented sorted/unsorted pitfalls.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two commits, reviewable separately:
refactor: restructure the core library (no behaviour change)QuadTree/→LinearAlgebra/,QuadTree.Tests→LinearAlgebra.Tests,QuadTree.Benchmark→LinearAlgebra.Benchmark,QuadTree.sln→LinearAlgebra.sln.index,dataLength,nrows,ncols,rowindex,colindex,nvals) move to the representation-neutralLinearAlgebra.Common, soGraphno longer takes units from quad-tree modules.LinearAlgebra/QuadTree/asLinearAlgebra.QuadTree.{Common,Vector,Matrix,Operations}; the formerLinearAlgebramodule (vxm,mxm) is nowOperations.ResultisLinearAlgebra.Result.feat: COO representation, minimal set for BFS, SSSP and TriangleCountLinearAlgebra/COO/{Common,Vector,Matrix,Operations}.fs: sorted immutable lists, only present values stored (noDummy, no storedOption), units of measure throughout....Unsortedtwin for hand-made fusion;sortconverts back. Sortedvxm/vxmi_values/mxmreduce in ascending inner index, so they match the quad-tree exactly even for non-commutativeop_add(e.g.bfsParent's first-wins).Graph.Impl.COO.{BFS,SSSP,TriangleCount}ops instances;Graph.Impl.Defaultstill points at the quad-tree.op_addin unsorted reductions, structural equality) are documented inLinearAlgebra/COO/Common.fsandAGENTS.md, and covered by regression tests.Tests
map2,mask,mapi,vxm,vxmi_values,mxm,transpose,getLowerTriangle,foldAssociative, andsort (opUnsorted (shuffled input)) == op input.dotnet fantomas --check .,dotnet build,dotnet testgreen: LinearAlgebra 186, Graph 129, Set 26.Notes for reviewers
LinearAlgebra.Benchmark/Main.fsandLinearAlgebra/LinearAlgebra.fsprojshow up as delete + create rather than renames (small files, mostly rewritten).TODO.md: COO item ticked; added COO benchmarks, the quad-treeVector.fromCoordinateListnvalsbug (counts duplicates), and extending COO beyond this minimum.🤖 Generated with Claude Code