Re: [Rd] Generate random numbers in Fortran

2009-02-14 Thread Ben Bolker
Ben Bolker ufl.edu> writes: > > vQ > > If one can get the R routines to work, I think they have some > advantages over NAG and Numerical Recipes routines: > > * source code is freely redistributable > * I can't really claim expertise, but I believe there > has been some controversy (see t

Re: [Rd] Generate random numbers in Fortran

2009-02-14 Thread Ben Bolker
Wacek Kusnierczyk idi.ntnu.no> writes: > > you can always try to get hold of the extensive nag fortran libraries: > > http://www.nag.co.uk/numeric/fl/FLdescription.asp > > comsider also 'numerical recipes' by press et al., of which there are > fortran, c, and c++ editions (i think there was a

Re: [Rd] Generate random numbers in Fortran

2009-02-14 Thread Kjell Konis
haracter in statement label at (1) > blah.f:4.1: > > end > 1 > Erro: Unclassifiable statement at (1) > make: ** [blah.o] Erro 1 > > > Fábio Mathias Corrêa >UFLA > > > --- Em sex, 13/2/09, Kjell Konis escreveu: > De: Kjell Konis > As

Re: [Rd] Generate random numbers in Fortran

2009-02-14 Thread Prof Brian Ripley
F??bio Mathias Corr??a UFLA --- Em sex, 13/2/09, Kjell Konis escreveu: De: Kjell Konis Assunto: Re: [Rd] Generate random numbers in Fortran Para: "fabio.u...@yahoo.com.br" Cc: "r-devel@r-project.org" Data

Re: [Rd] Generate random numbers in Fortran

2009-02-14 Thread Fabio Mathias
¡bio Mathias Corrêa                       UFLA --- Em sex, 13/2/09, Kjell Konis escreveu: De: Kjell Konis Assunto: Re: [Rd] Generate random numbers in Fortran Para: "fabio.u...@yahoo.com.br" Cc: "r-devel@r-project.org" Data: Sexta-feira, 13 de Feve

Re: [Rd] Generate random numbers in Fortran

2009-02-13 Thread Wacek Kusnierczyk
you can always try to get hold of the extensive nag fortran libraries: http://www.nag.co.uk/numeric/fl/FLdescription.asp comsider also 'numerical recipes' by press et al., of which there are fortran, c, and c++ editions (i think there was a pascal edition too), and where there are a choice of rou

Re: [Rd] Generate random numbers in Fortran

2009-02-13 Thread Kjell Konis
Take a look at section 6.6 in Writing R Extensions. It describes how to call C functions from FORTRAN. Basically it just boils down to this, in a C file define the functions void F77_SUB(fseedi)(void) { int x = 100; seed_in(&x); } void F77_SUB(fseedo)(void) { int x = 100; seed_out(&

[Rd] Generate random numbers in Fortran

2009-02-13 Thread Fabio Mathias
Hi!!! It would like to know if it exists a form to use the functions to generate variates in FORTRAN with the same easiness I use that them in C? Or not? If yes. They would have some example? I would like to use the functions rbeta, rlnorm and others! Sorry my english..rsrsrs Thanks!!!   Â