search for: do_knn_

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

Did you mean: do_knn_e
2007 Jul 10
1
How to preserve data across function calls in a library package
...(i.e to make it global) but when called in the 3rd function i get > *** caught bus error *** address 0x0, cause 'invalid alignment'" I tried Callocing it in the 1st function but to no avail. Here is a quick summary. When foo is called (through do_foo, **after** having called do_kNN_e) i get the aforementioned error. Can anyone provide some pointers (no pun intended) on this? Thanks Saptarshi ANN* book; int* foot; void foo(void){ Rprintf("many times\n"); Rprintf("%p\n",book); Rprintf("%p\n",foot); } SEXP kNN_e(SEXP data, SEXP Nrow,...
2007 Jul 10
1
How to preserve data across function calls in a library package
...(i.e to make it global) but when called in the 3rd function i get > *** caught bus error *** address 0x0, cause 'invalid alignment'" I tried Callocing it in the 1st function but to no avail. Here is a quick summary. When foo is called (through do_foo, **after** having called do_kNN_e) i get the aforementioned error. Can anyone provide some pointers (no pun intended) on this? Thanks Saptarshi ANN* book; int* foot; void foo(void){ Rprintf("many times\n"); Rprintf("%p\n",book); Rprintf("%p\n",foot); } SEXP kNN_e(SEXP data, SEXP Nrow,...