Displaying 20 results from an estimated 30000 matches similar to: "fortran into R"
2002 Feb 25
0
RE: R crashes when .Fortran embeded function, is called twice in R --> solved
Hi all,
Thanks to everybody who thought on this problem, there was slight mistake in
the fortran code which lead to NULL pointer allocation error, but still it
surprises me that why it does not crib in the first run. The compiler I am
using is absoft fortran compiler.
Cheers,
-Jag
Jagadish Rangrej ( Statistician )
CHEO Research Institute, Ottawa, ON
613-7383951
> -----Original Message-----
2012 Feb 08
1
FORTRAN compilation error
I get an error when trying to compile a FORTRAN source file for use in a
package that I am developing. The error, reported in 00install.out is
below.
* installing *source* package 'USGSstats' ...
** libs
*** arch - i386
C:/PROGRA~1/R/R-214~1.1/etc/i386/Makeconf:194: warning: overriding recipe
for target `.m.o'
C:/PROGRA~1/R/R-214~1.1/etc/i386/Makeconf:187: warning: ignoring old
2008 Nov 09
1
[Rd] Re Bessel functions of complex argument
Dear all,
I'm writing a code that requires Bessel functions with complex argument.
Searching the list, I found the continuation of a thread I initiated a few
months ago:
http://tolstoy.newcastle.edu.au/R/e4/devel/08/03/0746.html
As I understand, the most promising option would be to use the fortran or C
implementation of Amos,
2012 Oct 20
1
Trouble returning 2D array into R from Fortran
Hello,
I have been trying to use a collection of Fortran subroutines to return a 2D
array of calculated values to my R code, calling a Fortran wrapper
subroutine from R. I've done this successfully before with C & C++ code.
The Fortran wrapper subroutine which is to be called by R takes a set of
input arguments & then should return an array of 2 columns & the specified
number of
2008 Mar 09
2
Bessel functions of complex argument
Dear R users,
I'm porting a piece of Matlab code to R, but I'm now stuck with the
following: I need an equivalent of besselJ(x, nu) that can handle a
complex argument x. I couldn't find any R implementation. I did find
a possible fortran solution in SLATEC (< http://www.netlib.org/slatec/
> , CBESJ-C), however I've never tried to use external C or Fortran
code
2008 Mar 09
2
Bessel functions of complex argument
Dear R users,
I'm porting a piece of Matlab code to R, but I'm now stuck with the
following: I need an equivalent of besselJ(x, nu) that can handle a
complex argument x. I couldn't find any R implementation. I did find
a possible fortran solution in SLATEC (< http://www.netlib.org/slatec/
> , CBESJ-C), however I've never tried to use external C or Fortran
code
2012 Jan 15
1
Calling Fortran from R: Issues with dynamic loading of fortran dll
I successfully used .Fortran to load and execute my fortran procedures
under WinXP and 32 bit R. Alas, the same isn't true with my next Windows
7/64 machine, R 2.14.1 (64 bit) and the gnu gfortran (64) compiler
(mingw64 v. 4.6.1). Though I'm able to compile the routines from the
command line using gfortran '...', .Fortran('foo2') results in an error
saying the Fortran
2008 Jan 07
2
output into an unformatted direct fortran file
Hello everybody
Is there a way to output data into a file like the unformatted, direct
fortran files? That's the kind that can be opened with:
open(30, file='file', format='unformatted', access='direct', rec=1000,
convert='big endian')
Thank you in advance
Kostas Douvis
2016 Mar 04
0
ALLOCATE in a FORTRAN subroutine
Hi,
Until you get a more definitive answer, I will make an attempt to give some advice.
When using an assumed sized array (i.e. REAL*8 array1(*)) you still need to allocate the memory prior to calling the Fortran subroutine, so you would still need to know its maximum length.
Arrays created in a Fortran subroutine via the use of the ALLOCATE statements are not simple arrays (in the sense of C
2017 Jun 06
0
Philosophy behind converting Fortran to C for use in R
Here are three reasons for converting Fortran code, especially older
Fortran code, to C:
1. The C-Fortran interface is not standardized. Various Fortran compilers
pass logical and character arguments in various ways. Various Fortran
compilers mangle function and common block names in variousl ways. You can
avoid that problem by restricting R to using a certain Fortran compiler,
but that can
2016 Mar 07
0
ALLOCATE in a FORTRAN subroutine
Hi,
"we can, once we know how to do it, 'drive' R from within FORTRAN"
I am not sure I understand what you mean by this ...
You can call routines written in Fortran or C from within R - how easy this is depends on the interfaces to those routines.
You can call (some) R functionality from C (see for example
2008 Nov 24
0
[R] besselK
[cc'ing to R-devel]
It's moderately obscure to me too, but ...
There are two sets of bessel code in the package, one
in C++ from Chris Bond and the other in FORTRAN from Netlib
(I think). The FORTRAN code is the one that's giving trouble,
you might try just removing the FORTRAN code from the src
directory and trying again.
2009 Mar 27
0
Need some help at interfacing R with Fortran-90
I browsed through ch.5 of R manual "Writing R extensions".
It seems to be written for experienced programmers rathern than for people who occasionally face this problem.
A table summarising the main ley points for each supported platform would be very useful.
Something like:
Supported languages: C, Fortran-77, ......
Windows guidelines:
1. compie Fotran code with (commands) from
2008 Jul 30
0
[LLVMdev] llvm-gcc fortran bootstrap broken
On Wednesday 30 July 2008 18:13:27 Duncan Sands wrote:
> On x86-64 linux, in stage 2, I get:
>
> c++ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -o f951 \
> fortran/arith.o
2018 Mar 16
0
Discrepancy: R sum() VS C or Fortran sum
Install the gmp package, run your code, and then try this:
bu <- gmp::as.bigq(u)
bs4 <- bu[1] + bu[2] + bu[3] + bu[4] + bu[5]
s4 <- as.double(bs4)
s1 - s4
## [1] 0
s2[[2]] - s4
## [1] 7.105427e-15
s3 - s4
## [1] 7.105427e-15
identical(s1, s4)
## [1] TRUE
`bs4` is the exact sum of the binary rationals in your `u` vector;
`s4` is the closest double precision to this exact sum.
2013 Jul 09
0
New freebsd-fortran mailing list
There is a new mailing list : FreeBSD-Fortran.
The list is for discussion of Fortran related
ports on FreeBSD: compilers, libraries,
scientific and engineering applications from
laptops to HPC clusters.
Topics for discussion might include:
- better integration of fortran ports, i.e. compilers
libraries and end user applications
- maintenance of unmaintained fortran related ports
- user
2008 Feb 14
0
passing R array to Fortran subroutine
Hello,
I am trying to run a piece of Fortran code from R, and I am having trouble passing an array to the fortran subroutine. My attempts to pass an array into the fortran are producing memory errors, and I cannot find an example that performs the task. I have looked at "Writing R Extensions", and understand in concept what needs to happen, but all the examples are written in C.
2015 Mar 17
1
Using Fortran 90 code in packages for CRAN
I recently submitted a package to CRAN which encompasses Fortran 90 code.
Neither on my linux system nor on the win-builder system the compilation
reported any error or warning. The function worked fine. However, after
submission of the package to CRAN, I received an email that I should not
include Fortran 90 code.
The problem is that the part written in Fortran is a large function using
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
2009 Sep 11
1
Fortran routine affected by unrelated R code
Hi!
When I run "R CMD check" on the current development version of my R
package "frontier" [1], there is no difference between the output of
the test scripts in the /tests/ folder and the saved output files
(.Rout.save). However, if I change an R file in the /R/ folder, some
calls to the Fortran code (called by ".Fortran()") return different
results, although the