Re: [Rd] handling a matrix and .C

2008-12-01 Thread Sklyar, Oleg (London)
7144 3107 [EMAIL PROTECTED] > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Wilm Schumacher > Sent: 24 November 2008 18:59 > To: r-devel@r-project.org > Subject: [Rd] handling a matrix and .C > > Hello R-devel, > &g

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

[Rd] handling a matrix and .C

2008-11-25 Thread Wilm Schumacher
Hello R-devel, I want to write extensions for R in C (maybe C++ and Fortran later) and it works fine, but there is one problem, which I cannot solve (in my view). I want to handle a matrix from R in C. For arrays there is "as.double(...)", but nothing for a matrix. I searched a while, but didn