Skip to content

Make numerical scripts compose across lists, vectors, and matrices - #78

Merged
cmccomb merged 41 commits into
rhaiscript:masterfrom
cmccomb:master
Sep 19, 2026
Merged

cmccomb merged 41 commits into
rhaiscript:masterfrom
cmccomb:master

Conversation

@cmccomb

@cmccomb cmccomb commented Jun 15, 2026

Copy link
Copy Markdown
Member

Scientific scripts can now pass numeric data between matrix operations and statistics without manual reshaping. Explicit row, col, and mat constructors validate complete shapes; numerical list operations accept lists, rows, and columns consistently, including mixed integer/float samples. dot computes a scalar vector inner product, while mtimes performs 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.

…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
…d-add-tests

Fix meshgrid broadcasting and add tests
…-functions

Add projectile motion example
@cmccomb cmccomb changed the title Sane behavior and helpers for vectors, rows, matrix, lists Make numerical scripts compose across lists, vectors, and matrices Sep 19, 2026
@cmccomb
cmccomb marked this pull request as ready for review September 19, 2026 17:19
@cmccomb
cmccomb merged commit 1db8b32 into rhaiscript:master Sep 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant