search for: my_data_length

Displaying 2 results from an estimated 2 matches for "my_data_length".

2008 Jul 17
0
Re : float and double precision with C code
...t;jsubei at yahoo.fr> wrote: > Hi all, > > There is a mistake for wich I need your ligths : > > /////////////////////////////////////// > > I have a small C code : > > SEXP testData() > { > SEXP result; > void * rans; > float * my_data; > int my_data_length; > > my_data_length = 2; > my_data = new float[my_data_length]; > > my_data[0] = 29.958334; > my_data[1] = 29.875; > > PROTECT(result = allocVector(REALSXP, my_data_length)); > rans = (void *)REAL(result); > > for(int i=0; i < my_data_length;...
2008 Jul 17
0
Re : Re : float and double precision with C code
...t;jsubei at yahoo.fr> wrote: > Hi all, > > There is a mistake for wich I need your ligths : > > /////////////////////////////////////// > > I have a small C code : > > SEXP testData() > { > SEXP result; > void * rans; > float * my_data; > int my_data_length; > > my_data_length = 2; > my_data = new float[my_data_length]; > > my_data[0] = 29.958334; > my_data[1] = 29.875; > > PROTECT(result = allocVector(REALSXP, my_data_length)); > rans = (void *)REAL(result); > > for(int i=0; i < my_data_length;...