kushaldas / pym

Python for you and me book
674 stars 288 forks source link

wrong formula #59

Open heighgun opened 9 years ago

heighgun commented 9 years ago

I think matrix multiplication example in https://github.com/kushaldas/pym/blob/master/docs/datastructure.rst is wrong, should be like this: c = [] for i in range(0, n): c.append([]) for j in range(0, n): c[i].append(sum([a[i][k] * b[k][j] for k in range(0, n)]))

RaviTejaKomma commented 6 years ago

Resolved this issue in #128