search for: intpred

Displaying 16 results from an estimated 16 matches for "intpred".

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)
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
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
2001 Oct 01
1
Graceful exit from fortran.
Is there a way to exit gracefully from dynamically loaded Fortran, (several layers down), if an error condition is detected? I.e. suppose I'm within a subroutine called by a subroutine, ..., called by .Fortran(); I want to give up gracefully if an error condition is detected. If I say something like if(x .gt. 42.d0) stop then indeed everything stops, i.e. R falls over. I'd
1999 Aug 04
1
Re: Contributed packages for R windows port
On Wed, 4 Aug 1999, Peter Ho wrote: > I have been browsing in the contributed packages webpage and found that > there is an R port for MClust. Is there a way I can use it using the > windows port of R 0.64.2? I could not find a windows port of MClust. Simple reason: I was not able to compile it successfully under Windows. I did make it compile after a lot of effort, but it crashed R on
1999 Sep 06
1
Fortran character strings
Has anyone ever successfully used Fortran character strings with R? ?Foreign says R C Fortran integer int * integer .... character char ** [compiler dependent] Character strings are passed as C arrays of character strings to Fortran: the first string may be usable if its length is passed
2018 Sep 13
2
[GlobalISel][MIPS] Legality and instruction combining
...esult of icmp is always i1, and test argument (type 1) in select is also i1. Here is an .ll example: define i32 @f(i32 %a, i32 %b, i32 %c, i32 %d) { entry:   %cmp = icmp slt i32 %a, %b   %cond = select i1 %cmp, i32 %d, i32 %c   ret i32 %cond } and corresponding MIR snippet:     %4:_(s1) = G_ICMP intpred(sgt), %0(s32), %1     %5:_(s32) = G_SELECT %4(s1), %2, %3 On mips 32, integer compare uses i32 as result and that result is zero extended. For G_SELECT, we will select instructions that check whether "test register" was zero or not (selected instructions are movz or movn). Test register...
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
2000 Sep 06
2
reusing external functions across libs
Hi, I am searching for a way to solve the following problem: I want to use an external function, defined in a dyn.load()ed shared object, in another dyn.load()ed shared object. Currently I have to take the sources (Fortran) from one libraries src/ directory and copy them into the src/ dir of the other library, resulting in two copies of this function. This is bad for maintanance and maybe also
2018 Sep 21
2
[GlobalISel] Legalize generic instructions that also depend on type of scalar, not only scalar size
Hi, Mips32 has 64 bit floating point instructions, while i64 instructions have to be emulated with i32 instructions. This means that G_LOAD should be custom legalized for s64 integer value, and be legal for s64 floating point value. There are also other generic instructions with the same problem: G_STORE, G_SELECT, G_EXTRACT, and G_INSERT. There are also other configurations where integer
1998 Sep 18
1
R-beta: undefined reference to `realpr_' ?
Hi, Win95 version, trying to build multiv. Following error (no mention in faq etc, but someone may have mentioned it recently). Appreciate any help. ------- Building multiv.dll from multiv.a -------- echo LIBRARY multiv > multiv.def echo EXPORTS >> multiv.def nm multiv.a | sed -n "/^........ [DT] _/s/^........ [BCDRT] _/ /p" >> multiv.def gcc -mdll
2003 May 19
3
4GB limit with netstat
Hi, Was wondering if there are any plans to update either the kernel structures and/or netstat to show more than 4GB of traffic stats. For example, on a 4.8-STABLE machine: $ netstat -bI sis0 Name Mtu Network Address Ipkts Ierrs Ibytes ... sis0 1500 <Link#2> <mac-addr-hidden> 8789598 0 4103727771 ... <non-relevant parts removed> This shows that
2009 Feb 06
1
Use of cfortran.h?
I'm planning to try to use Mike Powell's new BOBYQA optimization routine to see if it is a good candidate to eventually replace Nelder-Mead as the optim() default. (Don't panic -- this won't happen quickly.) Mike writes f77 code. After some chasing about, I've realized that because optimization codes need to call the objective function written in R, they need to use a language
1998 Aug 28
0
R-beta: R-0.62.3 is released
I have just put R-0.62.3.tgz and R-0.62.2-0.62.3.diff.gz into the FTP area at Auckland. As usual, do not fetch it from there unless absolutely urgent, because of the NZ Internet billing system. The files should get mirrored to the main CRAN site in Vienna tonight and the rest of CRAN within days. [And, may I add, the NZ connection is slower than a sloth in a tarpit. I had turnaround times of up
1998 Aug 28
0
R-beta: R-0.62.3 is released
I have just put R-0.62.3.tgz and R-0.62.2-0.62.3.diff.gz into the FTP area at Auckland. As usual, do not fetch it from there unless absolutely urgent, because of the NZ Internet billing system. The files should get mirrored to the main CRAN site in Vienna tonight and the rest of CRAN within days. [And, may I add, the NZ connection is slower than a sloth in a tarpit. I had turnaround times of up
2001 Jul 25
2
Installation help
Hello, I am trying to compile R using the Sun WorkShop 6.0 (Forte) compilers. I don't think I am having a problem with the compilers, but instead with figuring out how to modify the R configuration to use non-Gnu compilers. I found in your documentation that one should modify the config.site file to change compilers, compiler flags, library paths, etc. I made modifications in this file,