Browse Source

Fixes F# SparseMatrix.initCol to iterate over columns instead of rows. Closes gh-13.

la-knuth
Christoph Ruegg 15 years ago
parent
commit
066621eea0
  1. 2
      src/FSharp/SparseMatrix.fs

2
src/FSharp/SparseMatrix.fs

@ -71,5 +71,5 @@ module SparseMatrix =
/// Initialize a matrix by calling a construction function for every column.
let inline initCol (n: int) (m: int) (f: int -> #Vector<float>) =
let A = new Double.SparseMatrix(n,m)
for i=0 to n-1 do A.SetColumn(i, f i)
for i=0 to m-1 do A.SetColumn(i, f i)
A
Loading…
Cancel
Save