fixed array index calculations
fixed array index calculations

andersbll/cudarray,lre/cudarray,rufrozen/cudarray,rufrozen/cudarray,malzantot/cudarray,andersbll/cudarray,bssrdf/cudarray,rufrozen/cudarray,malzantot/cudarray,lre/cudarray,bssrdf/cudarray