search for: runlength

Displaying 9 results from an estimated 9 matches for "runlength".

Did you mean: run_length
2006 Mar 29
0
R for Windows crash on new laptop
...r, 512 MB of RAM). Any suggestions would be greatly appreciated. ############################################################################ #ArchI_burnin_NOdensdep-mod.R# habitats <- 1 carrycap <- 7500 stages <- 5 rland <- NULL numreps <- 2 numsteps <- 50 stepsize <- 100 runlength <- numsteps*stepsize rland <- new.landscape.empty() rland <- new.intparam.land(rland, h = habitats, s = stages, totgen = runlength) rland <- new.switchparam.land(rland, mp = 1) rland <- new.floatparam.land(rland) #life history matrices at zero population density SZ <- matrix (c...
2008 Apr 12
4
HOW TO AVOID LOOPS
> Looking for a simple, effective a minimum execution time solution. > > For a vector as: > > c(0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1) > To transform it to the following vector without using any loops: > (0,0,1,0,1,2,3,0,0,1,2,0,1,0,1,2,3,4,5,6) > Appreciate any suggetions. [[alternative HTML version deleted]]
2006 Mar 29
0
R for Windows crash on new laptop - corrected script
...########################################### >> ## >> #ArchI_burnin_NOdensdep-mod.R# >> >> habitats <- 1 >> carrycap <- 7500 >> stages <- 5 >> rland <- NULL >> numreps <- 2 >> numsteps <- 50 >> stepsize <- 100 >> runlength <- numsteps*stepsize >> >> rland <- new.landscape.empty() >> rland <- new.intparam.land(rland, h = habitats, s = stages, totgen = >> runlength) >> rland <- new.switchparam.land(rland, mp = 1) >> rland <- new.floatparam.land(rland) >> >>...
2009 May 09
4
Generating a "conditional time" variable
Hi everyone, Please forgive me if my question is simple and my code terrible, I'm new to R. I am not looking for a ready-made answer, but I would really appreciate it if someone could share conceptual hints for programming, or point me toward an R function/package that could speed up my processing time. Thanks a lot for your help! ## My dataframe includes the variables 'year',
2009 Sep 08
5
sparse vectors
Hi I deal with long vectors almost all of whose elements are zero. Typically, the length will be ~5e7 with ~100 nonzero elements. I want to deal with these objects using a sort of sparse vector. The problem is that I want to be able to 'add' two such vectors. Toy problem follows. Suppose I have two such objects, 'a' and 'b': > a $index [1] 20 30 100000000
2013 Sep 23
28
[PATCH 0/2] add LZ4 kernel decompression support
Linux 3.11 added respective support, so I think we should follow suit. 1: xen: add LZ4 decompression support 2: libxc: add LZ4 decompression support Signed-off-by: Jan Beulich <jbeulich@suse.com>
2012 Feb 13
10
[RFB] add LZ4 compression method to btrfs
Hi, so here it is, LZ4 compression method inside btrfs. The patchset is based on top of current Chris'' for-linus + Andi''s snappy implementation + the fixes from Li Zefan. Passes xfstests and stresstests. I haven''t measured performance on wide range of hardware or workloads, rather wanted to publish the patches before I get distracted again. I''d like to ask
2012 Jun 23
9
[PATCH 0/5] btrfs: lz4/lz4hc compression
WARNING: This is not compatible with the previous lz4 patchset. If you''re using experimental compression that isn''t in mainline kernels, be prepared to backup and restore or decompress before upgrading, and have backups in case it eats data (which appears not to be a problem any more, but has been during development). These patches add lz4 and lz4hc compression
2013 Oct 26
2
[PATCH] 1. changes for vdiskadm on illumos based platform
...urce; + const BYTE *const iend = ip + isize; + const BYTE *restrict ref; + + BYTE *restrict op = (BYTE *) dest; + BYTE *const oend = op + maxOutputSize; + BYTE *cpy; + + size_t dec[] = { 0, 3, 2, 3, 0, 0, 0, 0 }; + + /* Main Loop */ + while (ip < iend) { + BYTE token; + int length; + + /* get runlength */ + token = *ip++; + if ((length = (token >> ML_BITS)) == RUN_MASK) { + int s = 255; + while ((ip < iend) && (s == 255)) { + s = *ip++; + length += s; + } + } + /* copy literals */ + cpy = op + length; + if ((cpy > oend - COPYLENGTH) || + (ip + length &gt...