search for: size2

Displaying 20 results from an estimated 29 matches for "size2".

Did you mean: size
2018 Jul 20
1
[PATCH 2/2] Fix safe_realloc_add_2op_() to free memory when reallocation fails
...c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/share/alloc.h b/include/share/alloc.h index 914de9ba..63878db0 100644 --- a/include/share/alloc.h +++ b/include/share/alloc.h @@ -168,7 +168,7 @@ static inline void *safe_realloc_add_2op_(void *ptr, size_t size1, size_t size2) free(ptr); return 0; } - return realloc(ptr, size2); + return safe_realloc_(ptr, size2); } static inline void *safe_realloc_add_3op_(void *ptr, size_t size1, size_t size2, size_t size3) -- 2.17.1
2011 Jun 03
2
Arules: R Crashes when running eclat with tidLists=TRUE
...M));} ruleset->trnb = vec1; } (...) if (flags & OF_LIST) { /* if to list the transactions, */ h = ruleset->trtotal; if (supp < 0) { /* if bit vector representation */ for (i = 0; i < tacnt; i++) { /* traverse the bit vector */ if (h >= size2) { size2 += (size2 > BLKSIZE) ? (size2 >> 1) : BLKSIZE; vec1 = (int*)realloc(ruleset->trans, size2 *sizeof(int)); if (!vec1) { if (vec) free(vec); if (vec2) free(vec2); _cleanup(); error(msg(E_NOMEM));} ruleset->trans = vec1; } i...
2013 Feb 18
1
ggplot2 and facet_wrap help
Dear R experts, I am trying to arrange multiple plots, creating one graph for each size1 factor variable in my data frame, and each plot has the median price on the y-axis and the size2 on the x-axis grouped by clarity: library(ggplot2) df <- data.frame(price=matrix(sample(1:1000, 100, replace = TRUE), ncol = 1)) df$size1 = 1:nrow(df) df$size1 = cut(df$size1, breaks=11) df=df[sample(nrow(df)),] df$size2 = 1:nrow(df) df$size2 = cut(df$size2, breaks=11) df=df[sample(nrow(df)),...
2007 Apr 26
2
ANOVA results in R conflicting with results in other software packages
...the two programs. I first thought this might be because the two programs use different calculations to get the sums of squares, but the problem persisted even after I specified type III sums of squares. Can anyone help me by clarifying why there is this discrepancy? The data table is: host size2 maladapt increase A yes 35 21 A yes 30 13 A no 73 -6 A yes 22 3 C yes 19 -1 A no 53 1 C no 48 -27 A yes 32 26 A yes 14 1 A no 83 42...
2003 Jun 30
1
symbol size on a plot
Hi, I would like to get from a plot the size of the symbols plotted. Imagine I have the following plot function : plot(1:2,1:2, pch=15, cex=4) I would like the get the values SIZE1 and SIZE2 so that if I plot the following rectangle : rect(1.5,1.5, 1.5+SIZE1, 1.5+SIZE2) then the size of this square is exactely the same as the one of the symbols that have been plotted. Thanks for any idea. -- -------------------------------------------------- Philippe Hup? Institut Curie - Equipe...
2008 Nov 05
1
Methods dispatch and inheritance R.oo
...A ); }) setMethodS3("print", "ClassA", function(this,...) { print(paste('Class A:',this$.size)); }) objA<-ClassA(); objA [1] "Class A: 15" setConstructorS3("ClassB", function(B=15) { extend("ClassA", "ClassB", .size2 = B ); }) setMethodS3("print", "ClassB", function(this,...) { print(paste('Class B:',this$.size2)); }) objB<-ClassB(); objB Error in this$.size2 : $ operator is invalid for atomic vectors -- View this message in context: http://www.nabble.com/Methods-dispa...
2012 Jun 24
3
Patch for cross compilation with MinGW32
...grams. kind regards, Christoph Terasa -------------- next part -------------- diff --git include/share/alloc.h include/share/alloc.h index 7aa17f7..3f2f2c7 100644 --- include/share/alloc.h +++ include/share/alloc.h @@ -110,7 +110,14 @@ static inline void *safe_malloc_add_4op_(size_t size1, size_t size2, size_t size return safe_malloc_(size4); } -void *safe_malloc_mul_2op_(size_t size1, size_t size2) ; +static inline void *safe_malloc_mul_2op_(size_t size1, size_t size2) +{ + if(!size1 || !size2) + return malloc(1); /* malloc(0) is undefined; FLAC src convention is to always allocate */ + if...
2018 Jul 18
3
Behavior of safe_realloc_add_2op_()
I'm looking at an issue reported by the Coverity static analyzer. In iconvert() in src/share/utf8/iconvert.c on line 152 there is newbuf = safe_realloc_add_2op_(utfbuf, ...); If the request size is not valid, the function will free utfbuf and return 0. This is followed by goto fail and utfbuf is freed for the second time. A simply fix would be to set utfbuf to 0 if newbuf is 0. However, this
2018 Jan 26
4
[RFC] Improving compact x86-64 compact unwind descriptors
...or the upper part of the extended compact unwind quadword for use in combination with MODE = 10 in the lower part. | 63                       48 47 46             40 39            32 | |-------------------------------------------------------------------| | RESERVED                   |  |  PROLOGUE-SIZE2 |  PROLOGUE-SIZE1 | |-------------------------------------------------------------------| Except for the MODE, the lower part is exactly like it would be for MODE = 2. PROLOGUE-SIZE1 is the length in bytes of the first part of the prologue relative to the STARTING-ADDRESS, up to and including th...
2017 Dec 31
1
Order of methods for optimx
...????????????????????? 129.606771856887, ?????????????????????????????????? -0.323749593604171, ?????????????????????????????????? 1.37326091618759), ???????????????????????????????? .Names = c("mu1", "size1", "mu2", ??????????????????????????????????????????? "size2", "p", "OTN")), ???????????????? method = c("Nelder-Mead", "BFGS"), ???????????????? data=ECFOCF_2002, hessian = TRUE) ) sbn <- system.time( ? o_mu2p1_bn <- fitCF(par = structure(c(0.244863062899293, ???????????????????????????????????? 43.5578...
2018 Jan 27
0
[RFC] Improving compact x86-64 compact unwind descriptors
...ded > compact unwind > quadword for use in combination with MODE = 10 in the lower part. > > | 63 48 47 46 40 39 32 | > |-------------------------------------------------------------------| > | RESERVED | | PROLOGUE-SIZE2 | PROLOGUE-SIZE1 | > |-------------------------------------------------------------------| > > > Except for the MODE, the lower part is exactly like it would be for MODE > = 2. > > PROLOGUE-SIZE1 is the length in bytes of the first part of the prologue > relative to the...
2018 Jan 29
2
[RFC] Improving compact x86-64 compact unwind descriptors
...> > quadword for use in combination with MODE = 10 in the lower part. > > > > | 63 48 47 46 40 39 32 | > > |-------------------------------------------------------------------| > > | RESERVED | | PROLOGUE-SIZE2 | PROLOGUE-SIZE1 | > > |-------------------------------------------------------------------| > > > > > > Except for the MODE, the lower part is exactly like it would be for MODE > > = 2. > > > > PROLOGUE-SIZE1 is the length in bytes of the first part of th...
2010 Apr 10
3
[PATCH 1/3] fbmem: fix aperture overlapping check
...8,15 +1468,25 @@ static int fb_check_foreignness(struct fb_info *fi) return 0; } +/** + * ranges_overlap - check whether two ranges overlap (their intersection is not empty) + * @start1: start of the first range + * @size1: length of the first range + * @start2: start of the second range + * @size2: length of the second range + */ +#define ranges_overlap(start1, size1, start2, size2) ({ \ + typeof(start1) __start1 = (start1); \ + typeof(size1) __size1 = (size1); \ + typeof(start2) __start2 = (start2); \ + typeof(size2) __size2 = (size2); \ + __start1 < __start2 + __size2 &&amp...
2018 Jan 27
0
[RFC] Improving compact x86-64 compact unwind descriptors
...ded > compact unwind > quadword for use in combination with MODE = 10 in the lower part. > > | 63 48 47 46 40 39 32 | > |-------------------------------------------------------------------| > | RESERVED | | PROLOGUE-SIZE2 | PROLOGUE-SIZE1 | > |-------------------------------------------------------------------| > > > Except for the MODE, the lower part is exactly like it would be for MODE > = 2. > > PROLOGUE-SIZE1 is the length in bytes of the first part of the prologue > relative to the...
2012 Nov 09
3
Crash - cause 'memory not mapped'
...;opencv/cv.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv/highgui.h> #include <opencv/cv.h> #include <R.h> #include <Rinternals.h> #include <Rmath.h> extern "C" { SEXP FiltroGaus(SEXP size1_r, SEXP size2_r, SEXP sigma_r) { int size1 = INTEGER(size1_r)[0]; int size2 = INTEGER(size2_r)[0]; double sigma = REAL(sigma_r)[0]; } } The compilation go without errors but when in R i type .C("FiltroGaus",3,3,2) the message is: Errore: INTEGER() can only be applied to a 'integ...
2008 Sep 18
1
PNG file don't run on mac's?
Een ingesloten tekst met niet-gespecificeerde tekenset is gescrubt ... Naam: niet beschikbaar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080918/ed87aa31/attachment.pl>
2003 Apr 28
1
Red Hat 9 regex symbol conflict
...t re_search (bufp, string, size, startpos, range, regs) struct re_pattern_buffer *bufp; const char *string; *************** *** 3577,3583 **** found, -1 if no match, or -2 if error (such as failure stack overflow). */ ! int re_search_2 (bufp, string1, size1, string2, size2, startpos, range, regs, stop) struct re_pattern_buffer *bufp; const char *string1, *string2; --- 3577,3583 ---- found, -1 if no match, or -2 if error (such as failure stack overflow). */ ! static int re_search_2 (bufp, string1, size1, string2, size2, startpos, range, r...
2001 Mar 28
4
efficiency and "forcing" questions
...(alldata4) for(i in 1:4) gc() library(modreg) attach(wintemp4) myppr1 <- function(x) { #run pprfile once to get list of sum of squared errors corresponding to differen numbers of terms pprfile.ppr <- ppr( award~ ilogemp+ilogage+sdb+allsmall+ size2+size3+size4+size5+size6+size7+size8+size9+size10+ X.Iprimnaic.2+X.Iprimnaic.3+X.Iprimnaic.4+X.Iprimnaic.5+X.Iprimnaic.6+ X.Iprimnaic.7+X.Iprimnaic.8+X.Iprimnaic.9+X.Iprimnaic.10+X.Iprimnaic.11+ X.Iprimnaic.12+X.Iprimnaic.13+X.Iprimnaic.14+X.Iprimnaic.15+...
2006 Dec 19
3
[LLVMdev] alias-aware scheduling
...se); + } + + /* FIXME: copied from DAGCombiner.cpp */ + /// isAlias - Return true if there is any possibility that the two addresses + /// overlap. + bool isAlias(SDOperand Ptr1, int64_t Size1, + const Value *SrcValue1, int SrcValueOffset1, + SDOperand Ptr2, int64_t Size2, + const Value *SrcValue2, int SrcValueOffset2) + { + // If they are the same then they must be aliases. + if (Ptr1 == Ptr2) return true; + + // Gather base node and offset information. + SDOperand Base1, Base2; + int64_t Offset1, Offset2; + bool KnownBase1 = Find...
2009 Feb 04
1
igraph: error when setting size and shape of vertices
When the shape of all vertices is set to "square" and the size of the vertices is also set, one get following error (commands attached): Error in l[[which.min(sapply(l, function(p) (p[1] - x0)^2 + (p[2] - y0)^2))]] : attempt to select less than one element Is there a way to solve this problem? Robbie ## Load the igraph package library(igraph) ## Create and plot a small graph