Permalink
Browse files

Got all the python out of the inner most loop

  • Loading branch information...
petigura committed Jul 13, 2012
1 parent b7f6287 commit ba2cf924620b86dfb8bf157c10cdb99a4eee7c10
Showing with 1 addition and 1 deletion.
  1. +1 −1 FFA_cy.pyx
View
@@ -125,7 +125,7 @@ def FFAGroupShiftAdd(cnp.ndarray[cnp.float64_t, ndim=2] group0,
Bs = Bshft[iRow]
# Loop over the columns in the group
for iCol in range(nColGroup):
- iBCol = (iCol - Bs + nColGroup) % nColGroup
+ iBCol = (iCol + Bs + nColGroup) % nColGroup
group[iRow,iCol] += group0[iA,iCol]
group[iRow,iCol] += group0[iB,iBCol]
return group

0 comments on commit ba2cf92

Please sign in to comment.