search for: divr

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

Did you mean: dir
2012 Jun 19
1
seek(), skip by bits (not by bytes) in binary file
...etc.) and read each chuck then trash each part that is readBin()'d. Then the last line I get the data that I want (data1). Here is my working code: # I have to read 'junk' bits from the to.read file which is huge integer so I divide it up and loop through to.read in parts (jb_part). divr = 20 mod = junk %% divr jb_part = as.integer(junk/divr) jb_part_mod = jb_part + mod # catch the remainder/modulus to.read = file(paste(dbs_path,"/",dbs_file,sep=""),"rb") # connect to the binary file # loop in chunks to where I want to be for(i in 1:(divr-1...
2011 Feb 23
0
Using qemu-kvm divre snapshot option
Hi, looking at the qemu-kvm man page, it is possible to enable snapshot for a given drive. This is what we need because we would like to start a domain with two drives, one on a file with snapshot=on and an other drive on LVM with snapshot=off. Unfortunately it seems that if you use libvirt the same option is not available when you define the domain with a XML file. I mean, I didn't find
2014 Apr 26
3
[LLVMdev] Proposal: add intrinsics for safe division
On Apr 25, 2014, at 2:21 PM, Eric Christopher <echristo at gmail.com> wrote: >> In short, I agree with your observations that these intrinsics are not an >> obvious slam-dunk compared to making the explicit control flow, but I think >> that the intrinsics do give enough flexibility on the LLVM side that it >> would be great if front-ends used them rather than rolling
2014 Apr 26
2
[LLVMdev] Proposal: add intrinsics for safe division
...div=x/y in different languages and write the > corresponding IR with use of the intrinsics (here I omit types for > conciseness, assuming result type of the safe.sdiv intrinsic being {i32, > i1, i1}) : > > *** C/C-like *** > %div = sdiv %x, %y > > *** Java, Go *** > %divr = call %safe.sdiv(%x, %y) > %div = extractvalue %divr, 0 > %divbyzero_bit = extractvalue %divr, 1 > br i1 %divbyzero_bit, label %throw, label %normal > > *** JavaScript, with "|0" *** > %divr = call %safe.sdiv(%x, %y) > %div = extractvalue %divr, 0 > >...
2014 Apr 29
2
[LLVMdev] Proposal: add intrinsics for safe division
...sponding IR with use of the intrinsics (here I >> omit types for conciseness, assuming result type of the safe.sdiv >> intrinsic being {i32, i1, i1}) : >> >> *** C/C-like *** >> %div = sdiv %x, %y >> >> *** Java, Go *** >> %divr = call %safe.sdiv(%x, %y) >> %div = extractvalue %divr, 0 >> %divbyzero_bit = extractvalue %divr, 1 >> br i1 %divbyzero_bit, label %throw, label %normal >> >> *** JavaScript, with "|0" *** >> %divr = call %safe.sdiv(%x, %y) &...
2012 Mar 20
1
overriding "summary.default" or "summary.data.frame". How?
...2, sd, na.rm=TRUE)) sumdat <- rbind(sumdat, var= apply(datn, 2, var, na.rm=TRUE)) sumdat <- rbind(sumdat, "NA's"=apply(datn, 2, function(x) sum(is.na(x)))) signif(sumdat, digits) } summary.factor <- function(y, numLevels) { ## 5 nested functions to be used later divr <- function(p=0){ ifelse ( p>0 & p < 1, -p * log2(p), 0) } entropy <- function(p){ sum ( divr(p) ) } maximumEntropy <- function(N) -log2(1/N) normedEntropy <- function(x) entropy(x)/ maximumEntropy(length(x)) nas <- is.na(y) y <- factor(y) ll <...
2012 Mar 04
1
JRuby devkit "gem install win32-api" fails. what to do?