-Original Message-
From: Shubha Vishwanath Karanth [mailto:[EMAIL PROTECTED]
Sent: Friday, February 08, 2008 1:05 AM
To: Ravi Varadhan; [EMAIL PROTECTED]
Subject: RE: [R] .fortran code
Hi Ravi,
...In the same fashion, I was trying to look at wilder.f of 'wilderSum'
London * New York * San José * Singapore *
www.ambaresearch.com
-Original Message-
From: Ravi Varadhan [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 07, 2008 8:56 PM
To: Shubha Vishwanath Karanth; [EMAIL PROTECTED]
Subject: RE: [R] .fortran code
If you look at the source code for eigen() y
If you look at the source code for eigen() you will notice that the .Fortran
calls a subroutine named either "rs.f" or "rg.f" depending on whether your
matrix is real and symmetric or real and asymmetric, respectively. So, you
can look at these files if you had installed the source code. Even if
On 11/28/2007 12:54 PM, Dave Roberts wrote:
> Bryan,
>
> The previous responses will point you in the right direction. I
> have found, however, that it takes a while to get used to the
> requirements, and there are many possible sources of error.
This is true, and the advice below is all
Bryan,
The previous responses will point you in the right direction. I
have found, however, that it takes a while to get used to the
requirements, and there are many possible sources of error.
1) You have to convert the main program to a subroutine. Any arrays
declared in the main progr
help.start(), then "Writing R extensions".
You can link fortran subroutines to R by compiling them in a shared
library (.so or .dll depending on your system) by the command:
R CMD SHLIB file1.f file2.f -o myfortransubroutines.so
and then from R you first
dyn.load("myfortransubroutines.so")
and
The `Writing R Extensions', chapter 5 `System and foreign language
interfaces' tells you how to compile and run Fortran code from R.
--
Bjørn-Helge Mevik
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read t
7 matches
Mail list logo