search for: subroutin

Displaying 20 results from an estimated 884 matches for "subroutin".

Did you mean: subroutine
2005 Nov 17
1
Linking Fortran subroutines
Hi, I just started using R a few weeks ago and have a problem with linking Fortran subroutines to R. For some reasons, I need to compile a Fortran program in R (or Splus) and the whole program consists a couple of subroutines, say, subA and subB. There is no difficulty in linking the subroutines individually, but two subroutines are nested, as shown below, SUBROUTINE subA(arg.) EXTER...
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
2010 Oct 25
2
R-Fortran question (multiple subroutines)
Dear R-helpers, apologies if this is somewhere in a manual, I have not been able to find anything relevant. I run Windows Vista. I have some Fortran code in a subroutine, and have no problem calling this from R with .Fortran, compiling the code either with 'R CMD SHLIB' or independently with gfortran. But is it possible to have more than one subroutine in my source file, one depending on the other? Or is this not supported, or is there a trick? Of course,...
2007 Sep 04
1
CPAN error
...list but im using centos anyway. i run CPAN by perl -MCPAN -e shell and got through the first time configuration and after selecting the mirror sites i got this error and i can't get any modules to be installed. I haven't encountered this before and not very familiar with cpan. Constant subroutine __USE_POSIX undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 8, <STDIN> line 33. Constant subroutine __USE_POSIX2 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 9, <STDIN> line 33. Constant subroutine __USE_POSIX199309 undefined at...
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 (lab...
2014 Oct 14
1
Do subroutines need their own h extension?
Hi all, According to the documentation ( http://www.voip-info.org/wiki/view/Asterisk+h+extension): Be aware: Macros require their own h extension as they do not make use of the calling context's h extension! Does this apply to subroutines too? I am unable to find the corresponding explanation. If not: what happens when a call is hanged-up during the execution of a subroutine? Is the h extension in the parent triggered? And also: what happens if, in a stack of subroutines, each calling subroutine has an h extension, like this: s...
2011 May 04
3
Error in .Fortran Call
I have the following FORTRAN code converted to a DLL: ! my_xmean.f90 ! ! FUNCTIONS/SUBROUTINES exported from my_function.dll: ! my_function - subroutine ! subroutine my_xmean(X,N,XMEAN) ! Expose subroutine my_function to users of this DLL ! !DEC$ ATTRIBUTES DLLEXPORT,C,REFERENCE,ALIAS:'my_xmean_'::my_xmean ! Body of my_function DOUBLE PRECISION X(N) XMEAN=0D0 DO J=1,N XMEAN=X...
2014 Dec 09
4
Passing literals with commas to subroutine
Hi, Let's say I do: Set(data=xxx,yyy) Gosub(my-sub,s,1(${data})) My subroutine will only receive "xxx" for ARG1. How can I pass a literal with a comma to a single argument in a subroutine? (The point is: when calling the subroutine I do not know if the variable has a comma or not.) Thanks, Daniel -------------- next part -------------- An HTML attachment was scru...
2013 Aug 02
1
Dial application "b" subroutine arguments not passing?
Asterisk 11.1.0 I'm trying to use the "b" subroutine of the Dial application so that I can do some stuff with our internal applications that need to have access to the called channel information. I can see that the subroutine is being executed, but the arguments I pass don't see to make it to the subroutine. [callmenow] exten => s,1,NoO...
2011 Nov 03
0
[LLVMdev] Proposal: MCLinker - an LLVM integrated linker
A helpful link-time optimization would be to place subroutines that are used close together in time also close together in the executable file. That also goes for data that is in the executable file, whether initialized (.data segment) or zero-initialized (.bss). If the unit of linkage of code is the function rather than the compilation module, and the uni...
2005 Aug 28
1
monitoring with mrtg
Dear freinds, The pl script file which is available in the asterisk monitoring section of the voip-info.com expects username ,password and host parameters . Which one we should provied is the acconts we registered for asterisk or any thing else your help will be immensely appreciated . with regards rk _______________________________________________________ Too much spam in your inbox?
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 like pointers), but are more akin to a C structure, in that they also contain information concerning the size of the array, s...
2001 Nov 05
2
Security - ssh allows unintended access on AIX
...(root is * exempt from maxexpired.) * ------------------------------------------------------------------------------- Base Operating System and Extensions Technical Reference, Volume 1 ------------------------------------------------------------------------------- passwdexpired Subroutine Purpose Checks the user's password to determine if it has expired. Syntax passwdexpired (UserName, Message) char *UserName; char **Message; Description The passwdexpired subroutine checks a user's password to determine if it has : The passwdexpired subroutine checks a user's pa...
2004 May 31
1
Question about building library and BLAS
Dear helpers, I am trying to create a library which uses some Fortran source files and Lapack and Blas subroutines. The Fortran source files from the original author contain subroutines isamax.f, sgefa.f and sgesl.f, which are part of BLAS subroutines on my Linux computer, but maybe different (old) versions. So in addition to these subroutines, there are other Lapack and Blas subroutines involved. There is n...
2016 Mar 04
3
ALLOCATE in a FORTRAN subroutine
Hi, I am a FORTRAN developer and I am 'translating' R functions in FORTRAN subroutines. I am 'new' to R. It's my first question in this mailing-list and English is not my natural language. Very often, an R function gives an 'array' as result and you don't have to bother with the dimension of the array : R creates automatically an array with the good length...
2010 Jun 18
3
Use of .Fortran
I have no experience with incorporating Fortran code and am probably doing something pretty stupid. I want to use the following Fortran subroutine (not written by me) in the file SSFcoef.f subroutine SSFcoef(nmax,nu,A,nrowA,ncolA) implicit double precision(a-h,o-z) implicit integer (i-n) integer l,i,nmax double precision nu,A(0:nmax,0:nmax) A(0,0) = 1D0 do l=1,nmax do i=1,l-1...
2010 Jun 18
3
Use of .Fortran
I have no experience with incorporating Fortran code and am probably doing something pretty stupid. I want to use the following Fortran subroutine (not written by me) in the file SSFcoef.f subroutine SSFcoef(nmax,nu,A,nrowA,ncolA) implicit double precision(a-h,o-z) implicit integer (i-n) integer l,i,nmax double precision nu,A(0:nmax,0:nmax) A(0,0) = 1D0 do l=1,nmax do i=1,l-1...
2011 Nov 02
2
[LLVMdev] Proposal: MCLinker - an LLVM integrated linker
Thanks for the useful information. We notice that the idea of LIPO also can help LLVM LTO if LLVM has FDO/PGO. And regarding Diablo, we'll learn from it and I think we'll get some good ideas from it. In MCLinker, the detail of the instructions and data in bitcode are still kept during linking, so some opportunities to optimize the instruction in bitcode become intuitive. Instruction
2004 Apr 20
2
compile Fortran code which calls C subroutine
I used "R CMD SHLIB" to compile the fortran filename.f file and the filename.so is generated. But since in filename.f it calls another subroutine written in C, i had problem in "dyn.load" because it could not find the C subroutine. I have the .c file but don't know how to tell R about it. How should I compile when I want to call the fortran function in R which calls (FORTRAN-callable) C-code? Thanks a l...
2010 Jul 13
0
compiling, linking and including multiple FORTRAN subroutines in R
...ts are too detailed and complicated for my limited needs (i.e. I can't follow them!). I am looking for a worked example (i.e. the series of commands etc) that does the following from within a WINDOWS environment: Given a series (i.e. more than one) of files containing FORTRAN source code for subroutines 1. how to compile and link these subroutines using the g77 compiler that is included in the R Tools (one main subroutine will call a series of other subroutines) to produce a .DLL file 2. how to call this compiled subroutine, linked to the others, from within an R function so that one can pass th...