[R] C code: how to handle *double as a matrix t[] []
nicolas baurin
nicolas.baurin at univ-orleans.fr
Tue May 16 12:40:31 CEST 2000
Helle R people,
here's my slightly out of range question: i am in c code (dll call from
R - passing a matrix as double * data, int * row and int * col). In
C/C++, i'd like to handle this *double as a 2D matrix with (*row-1) rows
and (*col - 1) columns. Something like double t [*row -1 ] [*col -1]
doesn't work (of course) but this is the idea - declaration of a 2D
array with dimensions passed as arguments.
Is the solution pure C/C++ or should i use R.h ... Any advice or
solution.
Merci d'avance,
Cordialement,
--
Nicolas Baurin
Doctorant
Institut de Chimie Organique et Analytique, UPRES-A 6005
Université d'Orléans, BP 6759
45067 ORLEANS Cedex 2, France
Tel: (33+) 2 38 49 45 77
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list