Re: [Haskell-cafe] translate imperative pseudo code into haskell

2013-08-09 Thread Frerich Raabe
On 2013-08-09 17:28, Frerich Raabe wrote: On 2013-08-09 17:04, Joerg Fritsch wrote: for 0 <= i < row dimension of A for 0 <= j < column dimension of B for 0 <= k < column dimension of A = row dimension of B sum += (read A (i,k))* (read B(k,j)) [..] -- This is one way to write your p

Re: [Haskell-cafe] translate imperative pseudo code into haskell

2013-08-09 Thread Frerich Raabe
On 2013-08-09 17:04, Joerg Fritsch wrote: I would need some help to get to a reasonable function involving the DB read, addition and multiplication. for 0 <= i < row dimension of A for 0 <= j < column dimension of B for 0 <= k < column dimension of A = row dimension of B sum += (read