Repository navigation
Add Octave cross-check harness under bench/octave - #72
Merged
Merged
Conversation
Generates seeded random and documented edge cases for every public function in Vec2, Vec3, Vec4, Mat22, Mat33, Mat44, and Quatern, then recomputes each result in GNU Octave from the documented conventions and reports per-function maximum error. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
4 similar comments
Merged
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
bench/octave/: an independent numerical cross-check of every public function inVec2,Vec3,Vec4,Mat22,Mat33,Mat44, andQuaternagainst GNU Octave.gen_cases.exsdrives each function with seeded random inputs plus documented error/edge cases and writes an Octave data file;check.mrecomputes each result from the documented conventions (row-major tuples, row-vector transforms, right-handed rotations, OpenGL depth range, Hamilton product on{w,x,y,z}) and reports per-function max error.run.shruns both steps. Requiresmixandoctave-clionPATH.Current result on
master(3.0.0): 1365 cases, zero mismatches, worst error ~3e-15. No library code is changed.Test plan
bench/octave/run.shcompletes with noFAIL/MISMATCHlines🤖 Generated with Claude Code