search for: ndiv

Displaying 19 results from an estimated 19 matches for "ndiv".

Did you mean: ndev
2017 Aug 11
2
Issues of R_pretty in src/appl/pretty.c
...6, min.n = 1) gave 1000000 intervals (on a machine), made me trace through the code to function 'R_pretty' in https://svn.r-project.org/R/trunk/src/appl/pretty.c . *lo is -1e300, *up is 1e300. cell = fmax2(fabs(*lo),fabs(*up)); 'cell' is 1e300. i_small = dx < cell * U * imax2(1,*ndiv) * DBL_EPSILON *3; When *ndiv is (int) 1e9, apparently cell * U * imax2(1,*ndiv) overflows to infinity and 'i_small' is 1 (true). It doesn't happen when *ndiv is (int) 1e6. Putting parentheses may avoid the floating point overflow. For example, i_small = dx < cell * (U * imax2(1,*nd...
2017 Aug 18
1
Issues of R_pretty in src/appl/pretty.c
...h the code to function 'R_pretty' in https://svn.r-project.org/R/trunk/src/appl/pretty.c . ? ? > thank you. ? ? >> *lo is -1e300, *up is 1e300. ? ? >> cell = fmax2(fabs(*lo),fabs(*up)); ? ? >> 'cell' is 1e300. ? ? >> i_small = dx < cell * U * imax2(1,*ndiv) * DBL_EPSILON *3; ? ? >> When *ndiv is (int) 1e9, apparently cell * U * imax2(1,*ndiv) overflows to infinity and 'i_small' is 1 (true). It doesn't happen when *ndiv is (int) 1e6. [[elided Yahoo spam]] ? ? >> Putting parentheses may avoid the floating point overflow. For e...
1998 May 06
0
Compiling on SGI Irix 5.3
...blem with externally installed regular expression libraries (e.g. librx). Perhaps you can improve the configure script... Thanks! HP. *** src/graphics/graphics.c.origin Fri Mar 13 11:51:50 1998 --- src/graphics/graphics.c Tue May 5 15:25:25 1998 *************** *** 805,812 **** *ndiv = nu - ns; if(*ndiv <= 0) ! printf("Gpretty(%g,%g,%d): cell=%g, ndiv= %d <=0;\t\t(ns,nu)=(%d,%d); ! dx=%g, unit=%3e, ismall=%1d.\n", x1,x2, nd0, cell, *ndiv, ns, nu, dx, unit, (int)i_small); } --- 805,812 ---- *ndiv = n...
2017 Aug 14
0
Issues of R_pretty in src/appl/pretty.c
...ne), made me trace through the code to function 'R_pretty' in https://svn.r-project.org/R/trunk/src/appl/pretty.c . thank you. > *lo is -1e300, *up is 1e300. > cell = fmax2(fabs(*lo),fabs(*up)); > 'cell' is 1e300. > i_small = dx < cell * U * imax2(1,*ndiv) * DBL_EPSILON *3; > When *ndiv is (int) 1e9, apparently cell * U * imax2(1,*ndiv) overflows to infinity and 'i_small' is 1 (true). It doesn't happen when *ndiv is (int) 1e6. well spotted! > Putting parentheses may avoid the floating point overflow. For example, >...
2016 Jun 01
15
[PATCH 00/15] clk/tegra: improve code and add DFS support
This series adds support for GM20B PLL's Maxwell features, namely glitchless switch and (more importantly) DFS support. DFS lets the PLL lower its output speed according to input current variations, making the clock more stable and allowing it to run safely at lower voltage. All GM20B additions are done in the last patch, which consequently ends up being considerably big ; fortunately, it
2014 Jul 10
0
[PATCH 3/3] drm/gk20a: reclocking support
...e GPCPLL_COEFF_P_SHIFT 16 +#define GPCPLL_COEFF_P_WIDTH 6 + +#define GPCPLL_CFG2 (SYS_GPCPLL_CFG_BASE + 0xc) +#define GPCPLL_CFG2_SETUP2_SHIFT 16 +#define GPCPLL_CFG2_PLL_STEPA_SHIFT 24 + +#define GPCPLL_CFG3 (SYS_GPCPLL_CFG_BASE + 0x18) +#define GPCPLL_CFG3_PLL_STEPB_SHIFT 16 + +#define GPCPLL_NDIV_SLOWDOWN (SYS_GPCPLL_CFG_BASE + 0x1c) +#define GPCPLL_NDIV_SLOWDOWN_NDIV_LO_SHIFT 0 +#define GPCPLL_NDIV_SLOWDOWN_NDIV_MID_SHIFT 8 +#define GPCPLL_NDIV_SLOWDOWN_STEP_SIZE_LO2MID_SHIFT 16 +#define GPCPLL_NDIV_SLOWDOWN_SLOWDOWN_USING_PLL_SHIFT 22 +#define GPCPLL_NDIV_SLOWDOWN_EN_DYNRAMP_SHIFT 31 +...
2005 Apr 26
1
Summarizing factor data in table?
...n the following data frame: foo <- data.frame(yr = c(rep(1998,4), rep(1999,4), rep(2000,2)), div = factor(c(rep(NA,4),"A","B","C","D","A","C")), org = factor(c(1:4,1:4,1,2))) I want to get two new variables. Object ndiv would give the number of divisions by year: 1998 0 1999 3 2000 2 Object norgs would give the number of organizations 1998 4 1999 4 2000 2 I figure xtabs should be able to do it, but I'm stuck without a for loop. Any suggestions? -Andy
1998 Jun 06
0
Strange Error on AIX
...the program. Does anyone have an idea due to Janusz> what is the following error present: Janusz> R : Copyright 1998, Robert Gentleman and Ross Ihaka Version Janusz> 0.61.3 (May 3, 1998) >> plot(rnorm(100),rnorm(100)) Janusz> Gpretty(NaNQ,NaNQ,5): cell=NaNQ, ndiv= -2 <=0; Janusz> (ns,nu)=(-2147483647,2147483647); dx=NaNQ, unit=NaNQ, ismall=0. Janusz> Gpretty(NaNQ,NaNQ,5): cell=NaNQ, ndiv= -2 <=0; Janusz> (ns,nu)=(-2147483647,2147483647); dx=NaNQ, unit=NaNQ, ismall=0. Janusz> Error: Length cannot be negative Janusz>...
2014 Jul 10
3
[PATCH 3/3] drm/gk20a: reclocking support
...FF_P_WIDTH 6 > + > +#define GPCPLL_CFG2 (SYS_GPCPLL_CFG_BASE + 0xc) > +#define GPCPLL_CFG2_SETUP2_SHIFT 16 > +#define GPCPLL_CFG2_PLL_STEPA_SHIFT 24 > + > +#define GPCPLL_CFG3 (SYS_GPCPLL_CFG_BASE + 0x18) > +#define GPCPLL_CFG3_PLL_STEPB_SHIFT 16 > + > +#define GPCPLL_NDIV_SLOWDOWN (SYS_GPCPLL_CFG_BASE + 0x1c) > +#define GPCPLL_NDIV_SLOWDOWN_NDIV_LO_SHIFT 0 > +#define GPCPLL_NDIV_SLOWDOWN_NDIV_MID_SHIFT 8 > +#define GPCPLL_NDIV_SLOWDOWN_STEP_SIZE_LO2MID_SHIFT 16 > +#define GPCPLL_NDIV_SLOWDOWN_SLOWDOWN_USING_PLL_SHIFT 22 > +#define GPCPLL_NDIV_SLOWDO...
1998 May 07
2
R-beta: 0.61.3: Problems on DEC Unix 4.0
...-Olimit 2000 -I/usr/local/include -I../include -c gdevice.c cc -ieee_with_inexact -O -Olimit 2000 -I/usr/local/include -I../include -c graphics.c cc: Error: graphics.c, line 808: An unexpected newline character is present in a string literal. printf("Gpretty(%g,%g,%d): cell=%g, ndiv= %d <=0;\t\t(ns,nu)=(%d,%d); -----------------^ ... It seems that my DEC cc does not understand strings that fill two lines. The solution to this is to join the lines 808 and 809 of src/graphics.c into one line. There is another problem with paste(): it did not work anymore: > paste...
1998 May 07
2
R-beta: 0.61.3: Problems on DEC Unix 4.0
...-Olimit 2000 -I/usr/local/include -I../include -c gdevice.c cc -ieee_with_inexact -O -Olimit 2000 -I/usr/local/include -I../include -c graphics.c cc: Error: graphics.c, line 808: An unexpected newline character is present in a string literal. printf("Gpretty(%g,%g,%d): cell=%g, ndiv= %d <=0;\t\t(ns,nu)=(%d,%d); -----------------^ ... It seems that my DEC cc does not understand strings that fill two lines. The solution to this is to join the lines 808 and 809 of src/graphics.c into one line. There is another problem with paste(): it did not work anymore: > paste...
2014 Jul 10
10
[PATCH 0/3] drm/gk20a: support for reclocking
This series adds support for reclocking on GK20A. The first two patches touch the clock subsystem to allow GK20A to operate, by making the presence of the thermal and voltage devices optional, and allowing pstates to be provided directly instead of being probed using the BIOS (which Tegra does not have). The last patch adds the GK20A clock device. Arguably the clock can be seen as a stripped-down
2014 Jul 26
5
[PATCH v2 0/3] drm/gk20a: support for reclocking
Second version of the gk20a clock patches. I have tried to keep the therm and volt devices mandatory in the clock driver, but unfortunately they are too tied to bios to allow this, at least for the moment. Consequently this version is mostly a port of the first version to Ben's tree. Ben, please let me know what I have done wrong in terms of integration to your tree, as the main purpose of
1998 May 07
0
Re R-beta: 0.61.3: Problems on DEC Unix 4.0
...ude -I../include -c > gdevice.c > cc -ieee_with_inexact -O -Olimit 2000 -I/usr/local/include -I../include -c > graphics.c > cc: Error: graphics.c, line 808: An unexpected newline character is present in a > string literal. > printf("Gpretty(%g,%g,%d): cell=%g, ndiv= %d <=0;\t\t(ns,nu)=(%d,%d); > -----------------^ > > ... > > It seems that my DEC cc does not understand strings that fill two lines. > > The solution to this is to join the lines 808 and 809 of src/graphics.c > into one line. > I run Digital UNIX 4.0A The above...
2011 May 30
0
2D random walk with traps convert C++ code to R code
...nd th end exporting the output to a file ( like write.table() or sink() ) Thank you... #include <iostream> #include <math.h>#include <fstream.h>#include <time.h> #define IA 16807#define IM 2147483647#define AM (1.0/IM)#define IQ 127773 #define IR 2836#define NTAB 32#define NDIV (1+(IM-1)/NTAB)#define EPS 1.2*pow(10,-7)#define RNMX (1.0-EPS) using namespace std;float rand1(long *idum); int main(){ long run=10000,adr=-run,x,y,hapa=0,i=0; int dimx=700,dimy=700,nrg=50, M[dimx][dimy]; double rnd,sum=0; long k[run+1],frekuenca; bool njehsuar[run+1], next; ofstream Txt("E...
2003 Aug 01
0
*** Self Employed Health Insurance - Free Quotes! gzd kjlg enlh (PR#3608)
...t;n<juliex>d Mor</castroc>e!<br wesleyanv>= S<gustavusb>peci</mastiffn>ali<pathm>zing i</= postpositionq>n Se<rosaw>lf-E</astrale>mp<wastr>loyed Pl</boott>an<economyy>s, Fa</warbleu>mily a<helenaa>nd I</hoses>ndiv<boliviad>idual Ca</racketeerf>re! <p snarkg>Lo<cavalcadeh>wer R</prohibitj>at<audaciousk>es th</fireflyl>an Bl<luminancez>ue Cr</banishx>os<swingablec>s a</agoutiv>nd Ot<gigacycleb>her Ma</incipientn>jor P<loudy>rov...
2008 Jul 09
7
recursively divide a value to get a sequence
Hi, if given the value of, say, 15000, I would like to be able to divide that value recursively by, say, 5, and to get a vector of a determined length, say 9, the last value being (set to) zero- i.e. like this: 15000 3000 600 120 24 4.8 0.96 0.192 0 These are in fact concentration values from an experiment. For my script, I get only the starting value (here 15000), and the factor by which
2016 Mar 11
16
[PATCH 00/16] clk/gm20b: add basic driver
This series does some refactoring in the GK20A's volt and clk drivers (fixing a few things while we are at it) to let GM20B benefit from the GK20A's logic with which it is compatible. GM20B is capable of more sophisticated (and power-efficient) reclocking which will follow later. Even after this more fancy reclocking is merged, the present logic will remain used in the lowest speedo of
2001 Feb 17
4
Comments on R-1.2.1 builds (PR#851)
...--------------------- c89 -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -OPT:IEEE_NaN_inf=ON -g -c pretty.c -o pretty.o cc-1185 c89: WARNING File = pretty.c, Line = 82 An enumerated type is mixed with another type. i_small = dx < cell * U * imax2(1,*ndiv) * DBL_EPSILON *3; ^ ------------------------------------------------------------------------ c89 -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -OPT:IEEE_NaN_inf=ON -g -c strsignif.c -o strsignif.o cc-1552 c89: WARNING File = strsignif.c, Line =...