Displaying 20 results from an estimated 300 matches similar to: "calling fortran functions CHOL and DPOTRF form Fortran"
2004 Oct 22
1
building an R package : where and how should my fortran library be loaded ?
Hi ,
I'm currently trying to make available
a few fortran subroutines and R functions
(which make interface to these subroutines),
as an R package.
I'm doing it under linux with R 1.9.0
(but hope to do it for windows too).
I have trouble for loading my fortran code.
Here are the steps involved :
1) In R:
# Create tree for package
2005 Jun 14
3
Calling C from Fortran
I would like to call C routines from Fortran under linux as suggested in
section 5.6 of
the "Writing R extensions" documentation.
I'm familiar with Fortran but not with C.
I understand the example provided in Fortran:
subroutine testit()
double precision normrnd, x
call rndstart()
x = normrnd()
call dblepr("X was", 5, x, 1)
call rndend()
end
but I don't understand
2004 Oct 25
5
building a package under windows
Hi,
I have a package of my own which seems to work fine under linux.
I want to make a compiled version for windows.
(I work with windows 2000 and R 2.0)
I have followed the steps described in the file
readme.packages (in the top-level directory of the binary installation)
and I had a trouble at this step (which aim is not documented):
C:\Program Files\R\rw2000\src\gnuwin32>make libR.a
2005 Nov 30
2
R binomial RNG stuck at 1 via Fortran call
Hi,
I have some trouble with the result of a fortran function calling the R
binomial RNG:
The C function rbinom is wrapped as in the file attached.
My main fortran program starts as
call rndstart()
and ends as
call rndend()
I happen to call the binomial RNG within a loop as
b = ggrbinom(1.d0,0.5d0)
write(*,*) 'b=',b
In certain cases, after a few iterations in the loop,
b get
2005 Oct 26
1
pb with dyn.load - fortran code now attached
Hi,
here are a couple of strange things happening with R.2.2.0 compiled
under Mandrake-10.1
At the begining of the story I have segmentation fault
using package RandomFields in conjuction with some Fortran code of mine
loaded with dyn.load.
One of my fortran programs contains a subroutine named fstat
Trying to trace , I simplified the sequence as much as possible
and I end up with the the
2000 Apr 14
1
novice question
Hello,
I've just compile R under solaris 7, everything went right, unfortunatly
when I run R as a normal user it returns saying:
$./R
GUI `X11' is not supported
However as root it works fine in text mode, that's what I want
$./R
R : Copyright 2000, The R Development Core Team
Version 1.0.0 (February 29, 2000)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are
2005 Jun 14
1
Calling C from Fortran
I would like to call C routines from Fortran as suggested in section 5.6 of
the "Writing R extensions" documentation.
I'm familiar with Fortran but not with C.
I understand the example provided in Fortran:
subroutine testit()
double precision normrnd, x
call rndstart()
x = normrnd()
call dblepr("X was", 5, x, 1)
call rndend()
end
but I don't understand the purpose
2005 Nov 08
1
R build under mandriva 10.2
After upgrading from mandrake 10.1 to mandriva 10.2
I can't build shared archive with R 2.2.0
[guillot at laplace src]$ R CMD SHLIB main.f sub.f wrapper.c
gcc -shared -L/usr/local/lib -o main.so main.o sub.o wrapper.o -lg2c -lm
-lgcc_s
/usr//bin/ld: cannot find -lg2c
collect2: ld returned 1 exit status
make: *** [main.so] Erreur 1
I guess the information in
2005 Oct 26
0
pb with dyn.load
Hi,
here are a couple of strange things happening with R.2.2.0 compiled
under Mandrake-10.1
At the begining of the story I have segmentation fault
using package RandomFields in conjuction with some Fortran code of mine
loaded with dyn.load.
One of my fortran programs contains a subroutine named fstat
Trying to trace , I simplified the sequence as much as possible
and I end up with the the
2011 Feb 08
1
Recuperate Spectrum() amplitude
Dear list,
I apologies first for my English, hope you will understand well my question.
I am working on 1/2 hour piezometric data, time unit is second. They
present daily oscillation when using the spectrum() function. What I am
really interested in, is to find the amplitude corresponding to this
oscillation.
I work with a college using Matlab, and although we apply the same
methodology, our
2004 Jul 08
7
Problem with the grep function
Let me present to you my problem :
I have a character vector x and I would like to obtain the indices of the
elements of
this vector that yielded exactly a match.
For example, x=nom, pattern="b", I would to obtain 2 because "b" is on the
second position.
First program :
nom <- c("a","b","ab")
grep("b",nom)
2 3
Then I try the
2010 Oct 22
2
Linking to lapack
Hello all.
I'm developing a package for R holding a Gibbs sampler, which tends to have
better performance when written in C than in R.
During each iteration in the Gibbs sampler, I need the inverse of a
symmetric matrix.
For this, I wish to use lapack, as is concisely suggested in "Writing R
extensions", since this will have better performance than I could ever write
myself.
After
2004 Dec 03
2
Status of linux 2.6 support
I'm sure that this question gets asked frequently, but a quick perusal
of the list archives shows that it hasn't been asked in a least a month
or so, so pardon any repetition.
What is the current state of asterisk on linux 2.6?
I ask, because I spent yesterday giving it a whirl, and everything
seems to go just fine till the very last minute.
Zaptel, libpri and asterisk compile just
2009 Sep 04
1
calling Lapack and BLAS routines from C
Hi,
I am working on a UNIX machine and I am interfacing R and C with the .C
function. I am trying to call LAPACK and BLAS routines, but am running
into a problem where, while I am able to run the BLAS routines, I cannot
run the LAPACK routines.
I compile my .c file (at end of email) in the following way:
[mhitczen at jlogin2 ~/Cstuff]$ R CMD SHLIB testmore.c
gcc -std=gnu99
2004 Nov 16
1
gcrma package
Hi !
I would like to understand where do affinity.spline.coefs used in function
compute.affinities come from ?
library(gcrma)
data(affinity.spline.coefs)
affinity.spline.coefs
X1 X2 X3 X4 X5 X1
-0.55004171 -0.58579091 -0.08870557 -0.47774242 0.23205570 0.58002746
X2 X3 X4 X5 X1 X2
2005 Nov 30
1
RNG stuck via Fortran call
Having not much success with my previous question I try to reformulate it:
I'm simulating a Markow chain in Fortran interfaced with R.
Each loop of my Fortran calls various functions of the R RNG through
the wrapper given below.
In a run of 100 iterations of the Markov kernel,
after 20 iterations, the RNG seems like frozen.
For example, the first call to the RNG in my loop is:
2004 Jan 19
1
memory limitation with Fortran interface
Hi,
I'm using R 7.0 under Linux as a programming interface to Fortran (g77
v0.5.24).
Basically, what I want to do is to call a fortran subroutine of mine
which performs MCMC computations.
Apparently I'm getting into memory management problems.
To track the problem I wrote the following small Fortran subroutine
(saved as test.f) :
subroutine test(n,p)
implicit none
2005 Jan 25
2
about R CMD check
hello,
I create a package which includes C code and Lapack. But when I run " R CMD
check ". an error message, "/usr/bin/ld: cannot find -lfrtbegin " occurs. could
you tell me what is the problem?
the detailed message is as follows:
[credsim@confsys ~/src]$ R CMD check var
* checking for working latex ... OK
* using log directory '/home/credsim/src/var.Rcheck'
*
2006 Nov 28
1
problem with source(), parse() and "french" colnames
Hello every one
Working under Windows Xp in French, and R version 2.4.0 (and : >
localeToCharset() : "ISO8859-1" )
I am trying to source a file with basic commands.
source("R files/InputFile Analysis (Calculs et mises à l'échelle - gestion
des pb d'unités).r")
and it works fine as long as I do not use command like these ones :
2005 Mar 10
1
about R CMD check
hello, everybody,
I create a package by myself named "var" on Linux system. I attach a C code
which uses "R_ext/Lapack.h" in directory "src". But when I carry out " R CMD
check var", it shows
> wxt0124()
Error in .C("wxt1221", PACKAGE = "var") : C function name not in DLL for package
var
Execution halted
Could you tell me what is