Re: [Rd] handling a matrix and .C

2008-12-01 Thread Sklyar, Oleg (London)
You should not have started with R/C API without reading this (first link in google): "Writing R Extensions". For your particular question you want pages 72+ and sections 5.9.3 and 5.9.4, possibly further as well Dr Oleg Sklyar Research Technologist AHL / Man Investments Ltd +44 (0)20 7144 3107 [E

Re: [Rd] handling a matrix and .C

2008-11-25 Thread Rory.WINSTON
> Last I looked at the source code of e1071 and of the core itself and > recognized (I hope I understood this), that you (and the "e1071" people) use > "as.double()" and give ".C" an array and one have to "parse" the matrix again > in the C function. I think this is the simplest way to handle m