search for: xidx

Displaying 7 results from an estimated 7 matches for "xidx".

Did you mean: idx
2001 Nov 16
1
UseMethod() fails to (PR#1176)
match the argument 'x' if there is another argument with prefix 'x' Full_Name: Henrik Bengtsson Version: 1.3.1 OS: Sun Solaris 8 Submission from: (NULL) (130.235.3.49) I ran into a strange problem with UseMethod(). Run the following code: foo.Bar <- function(this, x=0, xidx=0) { cat("In foo.Bar(): ", this, ", x=", x, ", xidx=", xidx, ".\n", sep=""); } foo.default <- function(x, ...) { str("Error: No default function found!"); } foo <- function(x, ...) UseMethod("foo"); obj <- "...
2001 Nov 16
0
Best/safest way to use UseMethod()?
...quot;alias") or barplot <- function(height, ...) UseMethod("barplot") What I would like to point out here is that there is a first argument ('object' and 'height'). This might give a conflict if some one do like this foo.Bar <- function(this, x=0, xidx=0) { cat("In foo.Bar(): ", this, ", x=", x, ", xidx=", xidx, ".\n", sep=""); } foo.default <- function(...) { str("Error: No default function found!"); } foo <- function(x, ...) UseMethod("foo"); ob...
2005 Jul 05
1
Kind of 2 dim histogram - levelplot
...:7 xble <- length( xb ) - 1 yble <- length( yb ) - 1 # fill data 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)/lengt...
2009 Jul 01
1
match() indexing
....1218458 7 10 0.9183175 > y <- data.frame(id=c(1,2,4,7,8,9,10,11,12)) > y id 1 1 2 2 3 4 4 7 5 8 6 9 7 10 8 11 9 12 I want to copy the x$r values to y to obtain >y id r 1 1 0.4243219 2 2 NA 3 4 0.7094532 4 7 0.9630027 5 8 NA 6 9 0.1218458 7 10 0.9183175 8 11 NA 9 12 NA xIdx <- match(x$id,y$id) yields a vector of length x, so it cannot be used directly to copy to y. Any help in vectorizing this assignment would be most welcome. Chris This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or...
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
...ndary 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_src[index]; // Load th...
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
2008 Jun 30
4
Rebuild of kernel 2.6.9-67.0.20.EL failure
Hello list. I'm trying to rebuild the 2.6.9.67.0.20.EL kernel, but it fails even without modifications. How did I try it? Created a (non-root) build environment (not a mock ) Installed the kernel.scr.rpm and did a rpmbuild -ba --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log The build failed at the end: Processing files: kernel-xenU-devel-2.6.9-67.0.20.EL Checking