Make numerical scripts compose across lists, vectors, and matrices - #78
Merged
Merged
Conversation
…ctor-wrappers feat: add matrix helpers
…rhai-types-eh7dgb Refactor matrix operations to use RhaiMatrix
…rhai-types-8nwkoi Refactor repmat to use matrix helpers
Add matrix vector constructor and orientation tests
…tions-to-readme docs: clarify matrix orientation
…ectory Add matrix inversion example
…d-add-tests Fix meshgrid broadcasting and add tests
…nd-add-tests Fix eye([n]) handling
…-functions Add projectile motion example
…-direct-concatenation
…iag-for-better-handling
…umeric-lists Accept row and column vectors as lists
# Conflicts: # src/matrices_and_arrays.rs # src/validate.rs
cmccomb
marked this pull request as ready for review
September 19, 2026 17:19
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.
Scientific scripts can now pass numeric data between matrix operations and statistics without manual reshaping. Explicit
row,col, andmatconstructors validate complete shapes; numerical list operations accept lists, rows, and columns consistently, including mixed integer/float samples.dotcomputes a scalar vector inner product, whilemtimesperforms matrix multiplication.Regression results expose the fitted intercept so callers can reconstruct predictions. A bundled CSV example covers predictor construction, fitting, prediction, and residual diagnostics. The change also fixes numeric extrema indices, preserves integer precision in integer statistics, restores minimal-feature compilation, and limits Polars to its supported 0.45 CSV API.
The README stays concise, with detailed conventions in a linked workflow guide. Package metadata and the changelog prepare version 0.4.0, including migration notes for Rust matrix-helper callers. Publishing is a separate step.
Validation: 25 minimal-feature, 50 numerical-feature, and 304 full-feature tests passed locally (counts include Rust documentation tests); the CSV regression example, formatting checks, and all-feature publish dry run passed. CI exercises all three feature configurations.