Re: [R-pkg-devel] [External] Re: incomplete gamma function Fortran subroutine

2020-07-21 Thread Ben Bolker
  I didn't find it until I said "before I compose a snarky reply to the list I'd better search for "Fortran" through *all* of WRE to make sure it's not there somewhere ..." On 7/21/20 5:01 PM, Wang, Zhu wrote: Indeed, that is the piece I missed completely! Glad that I didn't try to invent whe

Re: [R-pkg-devel] [External] Re: incomplete gamma function Fortran subroutine

2020-07-21 Thread Wang, Zhu
Indeed, that is the piece I missed completely! Glad that I didn't try to invent wheels. Thanks, Zhu -Original Message- From: Ben Bolker Sent: Tuesday, July 21, 2020 3:58 PM To: luke-tier...@uiowa.edu; Wang, Zhu Cc: John P. Nolan ; r-package-devel@r-project.org Subject: Re: [External] R

Re: [R-pkg-devel] [External] Re: incomplete gamma function Fortran subroutine

2020-07-21 Thread Ben Bolker
  Interesting.  It looks like the way to make use of this is to combine the information in section 6.7.1 ("Distribution functions", including pgamma ...) with section 6.6 "Calling C from Fortran and vice versa" ? On 7/21/20 4:33 PM, luke-tier...@uiowa.edu wrote: Looking at this section of WRE

Re: [R-pkg-devel] [External] Re: incomplete gamma function Fortran subroutine

2020-07-21 Thread luke-tierney
Looking at this section of WRE may help: https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Numerical-analysis-subroutines Best, luke On Tue, 21 Jul 2020, Wang, Zhu wrote: Thanks to Ben and John. Perhaps the program should call pgamma in R and pass the number to Fortran. Calling s