fslaborg / FSharp.Stats

statistical testing, linear algebra, machine learning, fitting and signal processing in F#
https://fslab.org/FSharp.Stats/
Other
205 stars 54 forks source link

Fix for `FSharp.Stats` Matrix Functionality** #316

Closed LibraChris closed 4 months ago

LibraChris commented 4 months ago

Description:

This pull request addresses the issues encountered in the FSharp.Stats library related to matrix manipulation, specifically in the SpecializedGenericImpl.setColM function and associated tests.

Changes Made:

  1. Corrected the validation check in the setColM function to properly utilize row counts instead of column counts. This ensures correct behavior, especially with non-square matrices.

  2. Updated the tests in the Matrix.fs file to include scenarios for non-square matrices and utilize Matrix.setCol instead of Matrix.setRow for consistency.

Testing:

Related Issues: