search for: newcount

Displaying 20 results from an estimated 20 matches for "newcount".

2007 Aug 02
1
beamer error with R
...ar R users, When I use beamer with \usepackage{harvard} it don't work. \LaTeX{} give mi an error message, ?any suggestion? ! LaTeX Error: No counter 'paragraph' defined. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.741 \newcounter{lsubparagraph}[paragraph] ? ! Emergency stop. ... l.741 \newcounter{lsubparagraph}[paragraph] Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it. ! LaTeX Error: No counter 'paragraph' defin...
2011 May 18
3
[LLVMdev] access array problem
...; index[0] = Constant::getNullvalue(Type:getInt32Ty(Context)); index[1] = Constant::get(Type::getInt32Ty(Context), 0); Constant *ElementPtr = ConstantExpr::getGetElementPtr(counter, &index[0], index.size()); Value *oldcounter = new LoadInst(ElementPtr, "oldcounter", InsertPos); Value *newcounter = BinaryOperator::Create(Instruction::Add, oldcounter, ConstantInt::get(Type::getInt64Ty(Context), 1), "newcounter", InsertPos); new StoreInst(newcounter, ElmentPtr, InserPos); //store the memory address to counterArray[oldcounter] std::vector<Constant*> indexC(2); indexC[0] = C...
2007 Aug 02
2
Re : beamer error with R
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible Url : https://stat.ethz.ch/pipermail/r-help/attachments/20070802/04c0f92e/attachment.pl
2011 May 18
0
[LLVMdev] access array problem
...bove two lines both compute the same thing (an i32 constant equal to zero) in two different ways. > Constant *ElementPtr = ConstantExpr::getGetElementPtr(counter, > &index[0], index.size()); > Value *oldcounter = new LoadInst(ElementPtr, "oldcounter", InsertPos); > Value *newcounter = BinaryOperator::Create(Instruction::Add, > oldcounter, ConstantInt::get(Type::getInt64Ty(Context), 1), > "newcounter", InsertPos); > new StoreInst(newcounter, ElmentPtr, InserPos); > > //store the memory address to counterArray[oldcounter] > std::vector<Constant*&...
2008 Dec 18
1
inserting zero instances with zeroes in a matrix
...ie","cat","hamster") d.f<-data.frame(house,pet,count) How would I acheive a dataframe that had every instance of house in column 1, all possible pets in column 2 and counts in column 3 like this... newhouse<-rep(unique(house),1,each=4) newpets<-rep(unique(pet),4) newcount<-c(2,1,0,0,2,0,0,0,1,0,0,0,0,3,2,4) newdf<-data.frame(newhouse,newpets,newcount) Is there a way of doing this without creating a new matrix and using programming loops? Thanks in advance, Simon. [[alternative HTML version deleted]]
2016 Jun 01
2
[PATCH v2] rescue: add --autosysroot option RHBZ#1183493
--autosysroot option uses suggestions to user on how to mount filesystems and change root suggested by --suggest option in virt-rescue. Commands are passed on kernel command line in format guestfs_command=command;. Command ends with a semicolon and there can be multiple commands specified. These are executed just before bash starts. On successfull run user is presented directly with bash in
2016 Jun 09
2
Re: [PATCH v2] rescue: add --autosysroot option RHBZ#1183493
...do_suggestion (drvs); > + if (!autosysroot) { > + exit (EXIT_SUCCESS); > + } else { > + /* Shut down libguestfs so we can start a new one */ > + guestfs_shutdown (g); > + guestfs_close (g); > + > + /* remove --suggest flag */ > + size_t newcount = argc; > + for (int i = 0; i < argc; i++) { > + if (strcmp (argv[i], "--suggest") == 0) { strcmp -> STREQ > + newcount--; > + } > + } > + > + char ** args = malloc (sizeof (char*) * (newcount)); > + for (int i = 0...
2014 Apr 18
2
[LLVMdev] multithreaded performance disaster with -fprofile-instr-generate (contention on profile counters)
...; > void inline inccounter(int idx) > { > int shardidx = gettid() & atomic_load(&shardmask, memory_order_consume); > shard[shardidx][idx]++; > } > > int pthread_create(...) > { > if (updateshardcount()) { > shardlock(); > if (updateshardcount()) { > int newcount = computeshardcount(); > for (int i = oldcount; i < newcount; i++) > shard[i] = malloc(ncounter*sizeof(uint64)); > atomic_store(&shardmask, newcount-1, memory_order_release); > } > shardunlock(); > } > ... > } > > > If we go with this scheme, for tid I woul...
2016 Jun 01
0
[PATCH v2] rescue: add --autosysroot option RHBZ#1183493
...drvs); - exit (EXIT_SUCCESS); + cmds = do_suggestion (drvs); + if (!autosysroot) { + exit (EXIT_SUCCESS); + } else { + /* Shut down libguestfs so we can start a new one */ + guestfs_shutdown (g); + guestfs_close (g); + + /* remove --suggest flag */ + size_t newcount = argc; + for (int i = 0; i < argc; i++) { + if (strcmp (argv[i], "--suggest") == 0) { + newcount--; + } + } + + char ** args = malloc (sizeof (char*) * (newcount)); + for (int i = 0, j = 0; i < argc; i++) { + if (strcmp (argv[i], &q...
2016 May 24
1
[PATCH] rescue: add --autosysroot option RHBZ#1183493
--autosysroot option uses suggestions to user on how to mount filesystems and change root suggested by --suggest option in virt-rescue. Commands are passed on kernel command line in format guestfs_command=command;. Command ends with a semicolon and there can be multiple commands specified. These are executed just before bash starts. On successfull run user is presented directly with bash in
2016 Jun 16
0
Re: [PATCH v2] rescue: add --autosysroot option RHBZ#1183493
...if (!autosysroot) { >> + exit (EXIT_SUCCESS); >> + } else { >> + /* Shut down libguestfs so we can start a new one */ >> + guestfs_shutdown (g); >> + guestfs_close (g); >> + >> + /* remove --suggest flag */ >> + size_t newcount = argc; >> + for (int i = 0; i < argc; i++) { >> + if (strcmp (argv[i], "--suggest") == 0) { > strcmp -> STREQ yup > >> + newcount--; >> + } >> + } >> + >> + char ** args = malloc (sizeof (char*) *...
2014 Apr 18
2
[LLVMdev] multithreaded performance disaster with -fprofile-instr-generate (contention on profile counters)
...() & atomic_load(&shardmask, memory_order_consume); >>> shard[shardidx][idx]++; >>> } >>> >>> int pthread_create(...) >>> { >>> if (updateshardcount()) { >>> shardlock(); >>> if (updateshardcount()) { >>> int newcount = computeshardcount(); >>> for (int i = oldcount; i < newcount; i++) >>> shard[i] = malloc(ncounter*sizeof(uint64)); >>> atomic_store(&shardmask, newcount-1, memory_order_release); >>> } >>> shardunlock(); >>> } >>> ... >&gt...
2014 Apr 18
4
[LLVMdev] multithreaded performance disaster with -fprofile-instr-generate (contention on profile counters)
On Apr 17, 2014, at 2:04 PM, Chandler Carruth <chandlerc at google.com> wrote: > On Thu, Apr 17, 2014 at 1:27 PM, Justin Bogner <mail at justinbogner.com> wrote: > Chandler Carruth <chandlerc at google.com> writes: > > if (thread-ID != main's thread-ID && shard_count < std::min(MAX, NUMBER_OF_CORES)) { > > shard_count = std::min(MAX,
2012 Apr 04
3
Rgui maintains open file handles after Sweave error
...}{}% \DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl} \DefineVerbatimEnvironment{Soutput}{Verbatim}{} \DefineVerbatimEnvironment{Scode}{Verbatim}{fontshape=sl} \newenvironment{Schunk}{}{} \newcommand{\Sconcordance}[1]{% \ifx\pdfoutput\undefined% \csname newcount\endcsname\pdfoutput\fi% \ifcase\pdfoutput\special{#1}% \else\immediate\pdfobj{#1}\fi}
2011 Dec 07
1
Output table from for loop
...make sense? how else #can I define sequential numbered output?) #numVec is numbers I use in the loop head(Counts) AN1 AN2 AN3 AN4 var GENE1 99 0 6 0 2360 GENE2 183 136 137 160 496 GENE3 301 199 233 187 1856 outMat<-paste("NewCounts", 1:5, sep="_") #names of numVec<-c(100,200,500,1000,1500) cutGenes<-function(x) { for (i in 1:5) { keep<- Counts$var<numVec[i] #gives logical vector keep<-Counts[keep=="TRUE",] #apply logical vector to count data (table) outMat[i]<-keep } } #thi...
2011 May 18
2
[LLVMdev] access array problem
...te the same thing (an i32 constant equal to > zero) in two different ways. > >> Constant *ElementPtr = ConstantExpr::getGetElementPtr(counter, >> &index[0], index.size()); >> Value *oldcounter = new LoadInst(ElementPtr, "oldcounter", InsertPos); >> Value *newcounter = BinaryOperator::Create(Instruction::Add, >> oldcounter, ConstantInt::get(Type::getInt64Ty(Context), 1), >> "newcounter", InsertPos); >> new StoreInst(newcounter, ElmentPtr, InserPos); >> >> //store the memory address to counterArray[oldcounter] >> s...
2009 Jun 26
0
Modifying Sweave.sty to allow escapes with fancyvrb package in LaTeX
...VerbatimEnvironment{Sinput}{Verbatim}{formatcom=\lstset{fancyvrb=true},commandchars=\\\{\}} \DefineVerbatimEnvironment{Soutput}{Verbatim}{} \DefineVerbatimEnvironment{Scode}{Verbatim}{fontshape=sl} \newenvironment{Schunk}{}{} \newcommand{\Sconcordance}[1]{% \ifx\pdfoutput\undefined% \csname newcount\endcsname\pdfoutput\fi% \ifcase\pdfoutput\special{#1}% \else\immediate\pdfobj{#1}\fi} -- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University -------------- next part -------------- A non-text attachm...
2008 Aug 05
0
patchDVI update: SyncTex support
...bottom of the page). Including the concordance info into a .pdf needs a patch to Sweave, and to Sweave.sty: Sweave should wrap the concordance in \Sconcordance{}, instead of \special{}. Sweave.sty should have this macro added: \newcommand{\Sconcordance}[1]{% \ifx\pdfoutput\undefined% \csname newcount\endcsname\pdfoutput\fi% \ifcase\pdfoutput\special{#1}% \else\immediate\pdfobj{#1}\fi} Improvements to this macro would also be appreciated. Duncan Murdoch
2008 May 22
9
building a many-to-many structure in javascript
hi, for some purpose, I need a "in-javascript database", maybe built with some Prototype $H function calls for creating "tables" but what about junction tables, I mean those which express many-to- many relations between two entity tables ? I though using concatenation of strings with a separator, for example "key1 key2" "1234-56" or "ABC \n 789"
2012 Mar 25
2
avoiding for loops
I have data that looks like this: > df1 group id 1 red A 2 red B 3 red C 4 blue D 5 blue E 6 blue F I want a list of the groups containing vectors with the ids. I am avoiding subset(), as it is only recommended for interactive use. Here's what I have so far: df1 <- data.frame(group=c("red", "red", "red", "blue",