[Rd] Fortran BLAS giving bad results

2014-01-11 Thread Emmanuel Sharef
Hello r-devel, When compiling Fortran code containing BLAS functions and calling it using dyn.load, I am getting incorrect results. A small example with which I can reproduce the problem is below. I am running on OSX Mavericks (upgraded R, Xcode, etc per instructions on this list), but I do not th

Re: [Rd] Fortran BLAS giving bad results

2014-01-11 Thread Berwin A Turlach
G'day Emmanuel, On Sat, 11 Jan 2014 14:08:41 -0800 Emmanuel Sharef wrote: > Example: this program creates two double vectors, takes the dot > product with ddot, and prints the result: > > test.f: > subroutine testddot(n,x,y) > integer i,n > double precision x,y,d1(n),d2(n) >