Displaying 1 result from an estimated 1 matches for "cor_wrap".
Did you mean:
core_wrap
2004 Nov 02
0
how to call function in ../src/main
...&sd_0, cor, kendall);
}
replace
SEXP do_cov(SEXP call, SEXP op, SEXP args, SEXP env)
{
...
}
and we have cor.i which has
/* File : cor.i */
%module cor
extern cor ( int n, double *x, double *y, double *ans );
We have
cor: cor.c
swig -perl5 cor.i
gcc -c cor.c cor_wrap.c -I. -I../../src/include -I/usr/local/include
-I$
(DCDFLIB) -I/usr/local/lib/perl5/5.8.2/sun4-solaris-thread-multi/CORE -Im
ld -G cor.o -Im -L. -lRmath -lm cor_wrap.o -o cor
in Makefile and We compiled it and we got cor.pm and cor.
We have test.pl which has
#!/usr/local/bin/perl
use st...