Trait-oriented linear algebra foundations for MoonBit, with checked APIs, backend wrappers, and mutable/immutable dense matrix and vector types.
Dependencies
let imm = @immut.Matrix::from_2d_array([[1, 2], [3, 4]])
let imm_updated = imm.set(0, 1, 9)
let m = @mutable.Matrix::from_2d_array([[1.0, 2.0], [3.0, 4.0]])
m.set(0, 1, 9.0)
let det = m.determinant()
let maybe_inv = m.inverse()
let row0 = m.row_view(0).to_array()| Version | Date | Status | Notes |
|---|---|---|---|
| 0.3.0 | 2026-06-14 | current repository release | Adopted shared arithmetic.Sqrt, current luna-generic homomorphisms, and ecosystem-wide numeric capability identities |
| 0.2.12 | 2026-06-06 | published on mooncakes | Strict bounds unification, semantic correctness fixes, benchmark diagnostics expansion, and documentation/audit refresh |
| 0.2.11 | 2026-05-27 | previous release baseline | Performance-tuned mutable kernels, dedicated wasm-gc backend, benchmark/reporting expansion, and API/doc alignment |
| 0.2.10 | 2026-05-27 | previous release baseline | Unified flattened mutable storage, matrix views, consistency coverage, benchmark coverage, and release-process alignment |
| 0.2.9 | 2026-02-03 | published on mooncakes | Published from the earlier 3328195 release state |
| 0.2.8 | 2026-02-03 | historical baseline | Algorithms and stability milestone used as the comparison baseline for later work |
moon fmt
moon check
moon test --enable-coverage
./run_test.shTrait-oriented linear algebra foundations for MoonBit, with checked APIs, backend wrappers, and mutable/immutable dense matrix and vector types.
Dependencies