[Rd] Using matprod from array.c

2005-10-12 Thread Heather Turner
Hi, I was wondering if I could use the matprod function from array.c in my own C routine. I tried the following as a test /* my_matprod.c */ # include Rinternals.h /* for REAL, SEXP etc */ # include R_ext/Applic.h /* array.c says need for dgemm */ /* following copied from array.c */ static

Re: [Rd] Using matprod from array.c

2005-10-12 Thread Prof Brian Ripley
You need to link against -lRblas as well, since that is where the BLAS library entry points are. See `Writing R Extensions' for a platform-independent way to do this via variables in Makevars (you need ${BLAS_LIBS) $(FLIBS)). On Wed, 12 Oct 2005, Heather Turner wrote: Hi, I was wondering