Displaying 2 results from an estimated 2 matches for "f77_xxxx".
2006 Apr 13
2
Calloc : syntax error
...se the classical C calloc... free, everything's fine.
Here's the part of code :
a = (double*) Calloc(*n,sizeof(double));
when i remove this line or replace it with the calloc, it's ok
Hint : In the header file R.h, there's a line :
/* for PROBLEM ... Calloc, Realloc, Free, Memcpy, F77_xxxx */
is it related ?
Does anyone know ?
Thanks
[[alternative HTML version deleted]]
2012 Mar 06
2
Calling FORTRAN function from R issue?
Hello,
I am trying to call the BLAS Level1 function zdotc from R via
a .C call like this:
#include "R.h"
#include "R_ext/BLAS.h"
void testzdotc() {
Rcomplex zx[3], zy[3], ret_val;
zx[0].r = 1.0; zx[0].i = 0.0;
zx[1].r = 2.0; zx[0].i = 0.0;
zx[2].r = 3.0; zx[0].i = 0.0;
zy[0].r = 1.0; zy[0].i = 0.0;
zy[1].r = 2.0; zy[0].i = 0.0;
zy[2].r = 3.0;