The FSharp.Stats.SpecializedGenericImpl.setColM function encounters an issue with non-square matrices. This is because it incorrectly checks column counts instead of row counts, leading to failure. You can see the problematic line here.
Furthermore, the tests in this section are only designed for square matrices and use Matrix.setRow instead of Matrix.setCol.
Bug Description:
The
FSharp.Stats.SpecializedGenericImpl.setColM
function encounters an issue with non-square matrices. This is because it incorrectly checks column counts instead of row counts, leading to failure. You can see the problematic line here.Furthermore, the tests in this section are only designed for square matrices and use
Matrix.setRow
instead ofMatrix.setCol
.Steps to Reproduce:
Expected Outcome:
The specified column insertion should succeed regardless of the column count, ensuring independence from the matrix's column count.