search for: yidx

Displaying 3 results from an estimated 3 matches for "yidx".

Did you mean: idx
2005 Jul 05
1
Kind of 2 dim histogram - levelplot
...in bins g <- expand.grid( x=xb[1:xble], y=yb[1:yble] ) g$cnt <- numeric( dim( g )[1] ) g$avg <- numeric( dim( g )[1] ) g$proz <- numeric( dim( g )[1] ) idx <- 1 for (myy in 1:yble) { for (myx in 1:xble) { xIdx <- which( ( (x >= xb[myx]) & (x < xb[myx + 1]) ) ) yIdx <- which( ( (y >= yb[myy]) & (y < yb[myy + 1]) ) ) bIdx <- intersect( xIdx, yIdx ) g[idx,3] <- length( bIdx ) g[idx,4] <- sum( val[bIdx] )/g[idx,3] g[idx,5] <- sum(val[bIdx]>0)/length(bIdx)*100 idx <- idx + 1 } } # show data and plot g levelplo...
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
...// calculate the boundary for the block according to // the boundary of its small block int blkY = small_block_rows*by-border_rows; int blkX = small_block_cols*bx-border_cols; int blkYmax = blkY+BLOCK_SIZE-1; int blkXmax = blkX+BLOCK_SIZE-1; // calculate the global thread coordination int yidx = blkY+ty; int xidx = blkX+tx; // load data if it is within the valid input range int loadYidx=yidx, loadXidx=xidx; int index = grid_cols*loadYidx+loadXidx; if(IN_RANGE(loadYidx, 0, grid_rows-1) && IN_RANGE(loadXidx, 0, grid_cols-1)){ temp_on_cuda[ty][tx] = temp_sr...
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
If I do M.dump(), at the top of the output I have: %struct.RB = type opaque Further down I have: @.str18 = internal addrspace(2) constant [13 x i8] c"RB_t*\00" However nowhere does it dump the full struct type when I call "M.dump()". I have it explicitly defined above the kernel in the kernel file, but LLVM doesn't seem to pick it up. Opaque is a placeholder until it