Skip to content

Commit

Permalink
Fix setColM as seen in #315
Browse files Browse the repository at this point in the history
Fix the FSharp.Stats.SpecializedGenericImpl.setColM to work with non square matrices as described in #315
  • Loading branch information
LibraChris committed Feb 8, 2024
1 parent 6c97a2b commit 63d8aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FSharp.Stats/AlgTypes.fs
Expand Up @@ -2099,7 +2099,7 @@ namespace FSharp.Stats
/// </code>
/// </example>
let setColM (a:Matrix<_>) j (v:Vector<_>) =
if a.NumCols = v.Length then
if a.NumRows = v.Length then
let l = v.Length-1
for i = 0 to l do
a.[i,j] <- v.[i]
Expand Down

0 comments on commit 63d8aa1

Please sign in to comment.