search for: realpr

Displaying 8 results from an estimated 8 matches for "realpr".

2001 May 09
1
Fortran subroutines dblepr, realpr, intpr
I am making my first attempts at using some Fortran code with R, and so far it's going OK. To print from my Fortran programs, it seems I need subroutines dblepr, realpr and intpr. From the excellent "Writing R Extensions" document: "Three subroutines are provided to ease the output of information from FORTRAN code. subroutine dblepr(label, nchar, data, ndata) subroutine realpr(label, nchar, data, ndata) subroutine intpr (label, nchar, data,...
1998 Sep 18
1
R-beta: undefined reference to `realpr_' ?
...gnuwin32 -lR -lf2c dlltool -k --as as --dllname multiv.dll --base-file multiv.b -- output-exp mul tiv.e --def multiv.def gcc -mdll -Wl,--base-file,multiv.b -s -o multiv.dll multiv.e multiv.a -L ../../../gnuwin32 -lR -lf2c multiv.a(sammon.o)(.text+0x495):sammon.f: undefined reference to `realpr_' make.exe[2]: *** [multiv.dll] Error 1 make.exe[2]: Leaving directory `c:/R-0.62.3/src/library/multiv/src' make.exe[1]: *** [src/multiv.dll] Error 2 make.exe[1]: Leaving directory `c:/R-0.62.3/src/library/multiv' make.exe: *** [pkg-multiv] Error 2 [exited with 2] (/R-0.62.3/src/gnuwin3...
2010 Dec 09
1
How to call DBLEPR in Fortran code to be used by R
Hi I've built a dll using Fortran code and can call it by either R or Fortran. Calling by the former gives me the wrong answer and the later gives the correct answer. From what I've read, it looks like I should use the subroutines DBLEPR, INTPR and REALPR to get values to show up in R which I hope will allow me to find the error. I've downloaded the R-2.12.0.tar.gz but have been unable to find these subroutines or any examples of how to get Fortran to recognize them. Obviously when I try to compile I get undefined reference to 'dblepr_...
2010 Dec 14
1
How to specify compiler options when using R CMD SHLIB
Hi I've built a dll using Fortran code and can call it by either R or Fortran. Calling by the former gives me the wrong answer and the later gives the correct answer. >From what I've read, it looks like I should use the subroutines DBLEPR, INTPR and REALPR to print to the R console rather than using Fortran standard I/O and that if I use the command R CMD SHLIB source.f that these subroutines will automatically be found (Please correct me if I'm wrong about any of this). The problem is that I have to specify the gfortran compiler option -fno-...
2000 Feb 02
1
(not) compiling fortran -- dynamic loading problem
Hi, everyone. This may be properly a fortran question rather than an R question. I'm trying to add a few print statements to otherwise working fortran code in one of the libraries so I can see what's going on in the code. I have no problem doing so on an SGI machine, but under LinuxPPC I've run into a problem. The code compiles and creates a shared object (.so), but when I issue
2018 Jul 10
2
Giving up using implicit control flow in guards
...some condition is true, and if it's not, we should deoptimize at this point and quit execution of the compiled code. According to http://llvm.org/docs/LangRef.html#llvm-experimental-guard-intrinsic, the guard looks like this: define void @llvm.experimental.guard(i1 %pred, <args...>) { %realPred = and i1 %pred, undef br i1 %realPred, label %continue, label %leave [, !make.implicit !{}] leave: call void @llvm.experimental.deoptimize(<args...>) [ "deopt"() ] ret void continue: ret void } Since guard's leave branch has a semantics of deoptimize, it is *always...
2018 Jul 13
2
Giving up using implicit control flow in guards
...f it's not, we should deoptimize at this point and quit execution of the compiled code. According to http://llvm.org/docs/LangRef.html#llvm-experimental-guard-intrinsic, the guard looks like this: > > > > define void @llvm.experimental.guard(i1 %pred, <args...>) { > > %realPred = and i1 %pred, undef > > br i1 %realPred, label %continue, label %leave [, !make.implicit > !{}] > > > > leave: > > call void @llvm.experimental.deoptimize(<args...>) [ "deopt"() ] > > ret void > > > > continue: > > ret...
2001 Jul 25
2
Installation help
...c util.c -o util.o cc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -g -c version.c -o version.o cc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -g -c vfonts.c -o vfonts.o f77 -g -O2 -c xxxpr.f -o xxxpr.o xxxpr.f: intpr: realpr: dblepr: /Net/local/bin/cc -o R.bin CConverters.o Rdynload.o RNG.o apply.o arithmetic.o array.o attrib.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o debug.o devPS.o devPicTeX.o deparse.o deriv.o devices.o dotcode.o dstruct.o dupl...