search for: maxidx

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

Did you mean: maxid
2012 Mar 28
0
[LLVMdev] Target lowering: how to dump byval argument?
...ead_ll* %val, i32 0, i32 1 store i32 162254319, i32* %2, align 4, !tbaa !0 %3 = call i32 @foo(%struct.tag_instead_ll* byval %val) ret i32 %3 } Inside the LowerCall function, when I trying to dump incoming OutVals: dbgs() << "<--- Outvals: --->\n"; for (int idx = 0, maxidx = OutVals.size(); idx != maxidx; ++idx) { dbgs() << idx << ":\n"; OutVals[idx].getNode()->dumprFull(); dbgs() << "\n"; } dbgs() << "<--->\n"; I get only: <--- Outvals: ---> 0: 0x31fbe40: i32 = FrameIndex<0>...
2017 Jun 07
0
Determining which.max() within groups
cumsum() seems to be what you need. This can probably be done more elegantly, but ... out <- aggregate(Q ~ wyr, data = Daily, which.max) tbl <- table(Daily$wyr) out$Q <- out$Q + cumsum(c(0,tbl[-length(tbl)])) out ## yields wyr Q 1 1990 4 2 1991 6 3 1992 9 4 1993 15 5 1994 18 I leave the matter of Julian dates to you or others. Cheers, Bert Bert Gunter "The trouble
2017 Jun 07
4
Determining which.max() within groups
Using the dataset below, I got close to what I'm after, but not quite all the way there. Any suggestions appreciated: Daily <- read.table(textConnection(" Date wyr Q 1911-04-01 1990 4.530695 1911-04-02 1990 4.700596 1911-04-03 1990 4.898814 1911-04-04 1990 5.097032 1911-04-05 1991 5.295250 1911-04-06 1991 6.569508 1911-04-07 1991 5.861587 1911-04-08 1991 5.153666