[Rd] handling a matrix and .C

Rory.WINSTON at rbs.com Rory.WINSTON at rbs.com
Tue Nov 25 12:27:34 CET 2008


> 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 matrices at this level - after all a matrix is really an homogenous array of data with indexing information ?

I have an example of handling matrices (using .Call) in an old post:

http://www.theresearchkitchen.com/blog/archives/113

Cheesr
Rory


***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority 

This e-mail message is confidential and for use by the=2...{{dropped:22}}



More information about the R-devel mailing list