Displaying 15 results from an estimated 15 matches for "r_nareal".
2003 Apr 06
1
RH 9 and R 1.7.0 Beta - Errors Resolved
...led us to the conclusion that there are optimization problems with the
current gcc in RH 9, which is:
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
We confirmed this running
./configure CFLAGS="-O0 -g"
and I was able to run make check without errors.
Bottom line, it appears that R_NaReal was not being set properly. It
would take the value of nan(0x8000000000000) instead of
nan(0x80000000007a2). This is set in R_NaReal = R_ValueOfNA().
The present version in arithmetic.c is:
117 static double R_ValueOfNA(void)
118 {
119 ieee_double x;
120 x.word[hw] = 0x7ff00000;...
2009 Dec 31
2
Benefit of treating NA and NaN differently for numerics
Hello,
I notice in main/arithmetic.c, that NA and NaN are encoded
differently(since every numeric NA comes from R_NaReal which is
defined via ValueOfNA)
. What is the benefit of treating these two differently? Why can't NA
be a synonym for NaN?
Thank you
Saptarshi
(R-2.9)
2004 Nov 02
0
how to call function in ../src/main
...lt );
my $temp = sprintf "%6.4f\n", $result;
printf "result: $temp \n";
}
test();
We setup LD_LIBRARY_PASTH and then we run test.pl, we got:
$ test.pl
Can't load './cor' for module cor: ld.so.1: /usr/local/bin/perl: fatal:
relocation error: file ./cor: symbol R_NaReal: referenced symbol not found
at /usr/local/lib/perl5/5.8.2/sun4-solaris-thread-multi/DynaLoader.pm line
229.
at cor.pm line 7
Compilation failed in require at test.pl line 3.
BEGIN failed--compilation aborted at test.pl line 3.
Do you know where is R_NaReal, what I did is wrong?
Thanks a lot!
K...
2014 May 02
1
Questions on extending Rcpp wrap and as with templates
...entries) {
std::vector<double> sec_times;
std::vector<double> doubles;
for(auto const& entry : entries)
{
sec_times.push_back(entry.GetTime().Seconds());
TimedOptDouble::OptDouble opt_double(entry.GetOptDouble());
if(opt_double)
doubles.push_back(*opt_double);
else
doubles.push_back(R_NaReal);
}
return List::create(
Named( "Time" ) = sec_times,
Named( "Value" ) = doubles);
}
First of all, this returns what I believe to be a Rcpp::List object, which
seems to be converted implicitly to a SEXP. This is the typical behaviour I
know.
Unfortunately, when making use of t...
1999 Sep 13
5
axis() produces junk on DEC alpha (PR#274)
Full_Name: Albrecht Gebhardt
Version: 0.65.0
OS: Digital Unix 4.0E
Submission from: (NULL) (212.17.104.62)
Plottimg on the Alpha stopped working with 0.65.0.
The tickmarks have a length of -Inf and go across the whole
plot.
A first solution is the following patch:
--- src/main/plot.c.alpha-patch Mon Sep 13 01:37:11 1999
+++ src/main/plot.c Mon Sep 13 01:58:16 1999
@@ -832,7 +832,7 @@
1999 Sep 14
0
R with a broken finite() (was [R] Problems with R-0.65.0) (PR#275)
...nd a system with HAVE_FINITE and FINITE_BROKEN defined, then R
will not work correctly (unless it uses the AIX workaround). The fix I
suggested to Ralf worked, and will probably be incorporated in 0.65.1
(unless we find a better one).
Try replacing the line
# define R_FINITE(x) ((x) != R_NaReal)
in Arith.h by
static int R_FINITE(double x) {
return !isnan(x) & (x != R_PosInf) & (x != R_NegInf); }
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 27...
2001 Nov 05
1
Setting NA from C code
In the maps library, NA's are inserted between polygons so lines() can
be used to draw all polygons at once. The code to do it is like this:
*x++ = NA_REAL;
*y++ = NA_REAL;
where x and y are declared as
double *x, *y, *range;
and are the arguments passed in through a .C call.
However, the values show up in R as -6.62314033633867e-229 instead of
NA, so the
2000 Mar 03
1
compiling R-1.0.0 on dec alpha (digital Unix 4.0)
I have tried compiling R on a dec alpha running digital unix 4.0 and
got the following:
f77 -shared -o ts.so PPsum.o burg.o eureka.o filter.o pacf.o starma.o stl.o carray.o mburg.o myw.o qr.o -lUfor -lfor -lFutil -lm -lots -lm
ld:
Warning: Unresolved:
R_alloc
R_NaReal
R_IsNA
R_IsNaNorNA
R_chk_calloc
R_chk_free
Rf_error
vmaxget
vmaxset
dqrdc2_
dqrcf_
mkdir ../../../../library/ts/libs
gmake[4]: Leaving directory `/home/ming/R-1.0.0/src/library/ts/src'
gmake[3]: Leaving directory `/home/ming/R-1.0.0/src/library/ts'
gmake[3]: Entering directory `/home/ming/R...
2011 Aug 29
3
How to safely using OpenMP pragma inside a .C() function?
I am trying to parallelize part of a C function that is called from R (via
.C) using OpenMP's "parallel for" pragma. I get mixed results: some runs
finish with no problem, but some lead to R crashing after issuing a long
error message involving memory violations.
I found this post, which describes how a .Call() function can be made to
avoid crashing R by raising the stack limit:
1999 Sep 13
4
Problems with R-0.65.0
Hello,
I installed the new release 0.65.0 of R on our local Solaris system. As I
already (and sucessfully) installed the 0.64.0 and 0.64.1 version of R, I
hadn't had any trouble during the installation. But as I've started R in
order to see the demo I've got horizontal and vertical lines goint to the
left and top of the X11 window at each tick (demo ("graphics")). This
seems
2004 Mar 13
0
64bit build on IBM
....Rf_asInteger
ld: 0711-317 ERROR: Undefined symbol: R_NaInt
ld: 0711-317 ERROR: Undefined symbol: .Rf_length
ld: 0711-317 ERROR: Undefined symbol: .Rf_nthcdr
ld: 0711-317 ERROR: Undefined symbol: .R_strtod
ld: 0711-317 ERROR: Undefined symbol: .Rf_isBlankString
ld: 0711-317 ERROR: Undefined symbol: R_NaReal
ld: 0711-317 ERROR: Undefined symbol: .UNIMPLEMENTED
ld: 0711-317 ERROR: Undefined symbol: .Rf_duplicate
ld: 0711-317 ERROR: Undefined symbol: .R_ProtectWithIndex
ld: 0711-317 ERROR: Undefined symbol: R_NamesSymbol
ld: 0711-317 ERROR: Undefined symbol: .Rf_getAttrib
ld: 0711-317 ERROR: Undefined sy...
2011 Apr 21
0
C source code question (Robustbase edition)
...e *)R_alloc(n, sizeof(double));
int *left = (int *)R_alloc(n, sizeof(int));
int *right = (int *)R_alloc(n, sizeof(int));
int *p = (int *)R_alloc(n, sizeof(int));
int *q = (int *)R_alloc(n, sizeof(int));
int *weight = (int *)R_alloc(n, sizeof(int));
double trial = R_NaReal;/* -Wall */
Rboolean found;
int h, i, j,jj,jh;
/* Following should be `long long int' : they can be of order n^2 */
int64_t k, knew, nl,nr, sump,sumq;
h = n / 2 + 1;
//h = n - p0 + 1;
k = (int64_t)h * (h - 1) / 2;
for (i = 0; i < n; ++i) {
y[i] = x[i];
le...
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...e/v4.2.1/include -DHAVE_CONFIG_H -std1 -ieee_with_inexact
-I/soft/readline/v4.2.1/include -c rbitmap.c -o rbitmap.lo
/usr/bin/cc -shared -L/soft/readline/v4.2.1/lib -o R_X11.so dataentry.lo
devX11.lo rotated.lo rbitmap.lo -lSM -lICE -lX11 -lreadline -ltermcap
-lm
ld:
Warning: Unresolved:
R_NaReal
R_NaInt
Rf_error
Rf_warning
UNIMPLEMENTED
Rf_isBlankString
R_strtod
R_GlobalEnv
R_NilValue
R_NaString
Rf_coerceVector
Rf_PairToVectorList
Rf_VectorToPairList
Rf_allocString
Rf_allocVector
Rf_allocList
Rf_asInteger
Rf_duplicate
Rf_GetOption
Rf_install
Rf_isList
Rf_isVector
Rf_length
Rf_listAppend
Rf...
1999 May 03
1
problems compiling R-0.63.3 on alpha
...ake[5]: Entering directory `/mn/vega/astro/local/src/rstat/R-0.63.3/src/librar
y/modreg/src'
ld -shared -lm -o modreg.so bsplvd.o bvalue.o bvalus.o dpbfa.o dpbsl.o
ksmooth.o loessc.o loessf.o ppr.o qsbart.o sbart.o sgram.o sinerp.o sslvrg.o
stxwx.o -ldxml
ld:
Warning: Unresolved:
_OtsDivide32
R_NaReal
sprintf
warning
strcmp
calloc
free
strncpy
strcat
d1mach_
dqrdc_
dqrsl_
dsvdc_
intpr_
dblepr_
__exc_add_pc_range_table
__exc_add_gp_range
__exc_remove_pc_range_table
__exc_remove_gp_range
make[5]: Leaving directory `/mn/vega/astro/local/src/rstat/R-0.63.3/src/library
/modreg/src'
make[4]: Leavi...
1999 May 03
0
compilation of R-0.63.3 on alpha (PR#183)
...Entering directory `/mn/vega/astro/local/src/rstat/R-0.63.3/src/=
librar
y/modreg/src'
ld -shared -lm -o modreg.so bsplvd.o bvalue.o bvalus.o dpbfa.o dpbsl.o =
ksmooth.o loessc.o loessf.o ppr.o qsbart.o sbart.o sgram.o sinerp.o sslvr=
g.o =
stxwx.o -ldxml
ld:
Warning: Unresolved:
_OtsDivide32
R_NaReal
sprintf
warning
strcmp
calloc
free
strncpy
strcat
d1mach_
dqrdc_
dqrsl_
dsvdc_
intpr_
dblepr_
__exc_add_pc_range_table
__exc_add_gp_range
__exc_remove_pc_range_table
__exc_remove_gp_range
make[5]: Leaving directory `/mn/vega/astro/local/src/rstat/R-0.63.3/src/l=
ibrary
/modreg/src'
make[4]: Lea...