-
-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi, I’ve been using ml_linalg (v13.12.6) and noticed a few missing matrix operations that would enhance its utility for numerical computing and data science. I’ve implemented some of these and am happy to contribute via pull requests or collaboration.
Proposed Functions
- QR Decomposition: For solving linear systems and eigenvalue computation.
- Cholesky Decomposition: For symmetric positive definite matrices, useful in optimization.
- Full Eigenvalue Computation: To compute all eigenvalues, extending eigen.
- Determinant: For matrix invertibility and geometric applications.
- Trace: For optimization and matrix analysis.
- Condition Number: To assess numerical stability.
- Matrix Rank: For dimensionality analysis.
- Singular Value Decomposition (SVD): For PCA and data compression (noted in prior community requests).
- Zero Matrix: To initialize zero-filled matrices, like Vector.fromList.
- Simplex Method: For linear programming optimization.
Notes
These functions complement existing Matrix methods (e.g., decompose, solve).
Simple functions (e.g., trace, determinant) are straightforward; others (e.g., SVD) may need FFI for performance.
I can provide prototypes (e.g., QR, eigenvalues, simplex) and follow your coding standards.
Questions
Which functions are highest priority?
Any preferences for implementation or integration (e.g., extending decompose)?
Thanks for considering! I’m eager to help make ml_linalg even better (than vector_math).