search for: rf_allocmatrix

Displaying 6 results from an estimated 6 matches for "rf_allocmatrix".

2011 Oct 13
1
how to return a matrix of strings from c to R ?
I am a bit confused about usage of R internal functions. I am able to send a char vector from C to R but not sure on how to send a vector of strings etc. My code looks like this. <code> SEXP result = PROTECT(Rf_allocMatrix(STRSXP,s->n_rics,s->n_fields)); int i,j; for (i=0; i < s->n_rics; i++) { for (j=0; j < s->n_fields; j++) { std::string text = s->data[j][i]; result[j][i] = R_alloc( text.length(), sizeof(char)); //strcpy(result[j][i], text.c_str()); SET_STRING_ELT(r...
2015 Feb 05
2
Invalid read of size 8
...E9012: Rf_ReplIteration (main.c:260) ==954== Address 0x107df7fb8 is 40 bytes inside a block of size 176 free'd ==954== at 0x4D8D: free (vg_replace_malloc.c:477) ==954== by 0xF0BCA: R_gc_internal (memory.c:1026) ==954== by 0xF2400: Rf_allocVector3 (memory.c:2578) ==954== by 0x2BBCE: Rf_allocMatrix (Rinlinedfuns.h:189) ==954== by 0xA92D449: NPHDPHMM (in /Users/NPHDPHMM.so) ==954== by 0x8632A: do_dotcall (dotcode.c:652) ==954== by 0xB036A: Rf_eval (eval.c:657) ==954== by 0xBE8C0: do_set (eval.c:2028) ==954== by 0xB0404: Rf_eval (eval.c:629) ==954== by 0xBE3C4: do_begin (eval....
2018 Oct 02
3
maximum matrix size
I am now getting the occasional complaint about survival routines that are not able to handle big data.?? I looked in the manuals to try and update my understanding of max vector size, max matrix, max data set, etc; but it is either not there or I missed it (the latter more likely).?? Is it still .Machine$integer.max for everything??? Will that change??? Found where? I am going to need to go
2002 Jan 17
1
MKL seems to beat ATLAS, but some problems... (was RE: li nkin g R against MKL)
...k.so) undefined symbol: R_NaInt (./lapack.so) undefined symbol: Rf_isString (./lapack.so) undefined symbol: STRING_ELT (./lapack.so) undefined symbol: Rf_isComplex (./lapack.so) undefined symbol: Rf_duplicate (./lapack.so) undefined symbol: LENGTH (./lapack.so) undefined symbol: Rf_allocMatrix (./lapack.so) undefined symbol: Rf_coerceVector (./lapack.so) undefined symbol: Rf_mkChar (./lapack.so) undefined symbol: R_alloc (./lapack.so) undefined symbol: SET_STRING_ELT (./lapack.so) undefined symbol: Rf_allocVector (./lapack.so) undefined symbol: R_CHAR...
2002 Jan 17
1
MKL seems to beat ATLAS, but some problems... (was RE: li nkin g R against MKL)
...k.so) undefined symbol: R_NaInt (./lapack.so) undefined symbol: Rf_isString (./lapack.so) undefined symbol: STRING_ELT (./lapack.so) undefined symbol: Rf_isComplex (./lapack.so) undefined symbol: Rf_duplicate (./lapack.so) undefined symbol: LENGTH (./lapack.so) undefined symbol: Rf_allocMatrix (./lapack.so) undefined symbol: Rf_coerceVector (./lapack.so) undefined symbol: Rf_mkChar (./lapack.so) undefined symbol: R_alloc (./lapack.so) undefined symbol: SET_STRING_ELT (./lapack.so) undefined symbol: Rf_allocVector (./lapack.so) undefined symbol: R_CHAR...
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...4.2.1/lib -o lapack.so Lapack.lo double.lo cmplx.lo cmplxblas.lo -L/soft/readline/v4.2.1/lib -lreadline -ltermcap -lm -lUfor -lfor -lFutil -lots -lm_c32 -lmld -lexc -lreadline -ltermcap -lm ld: Warning: Unresolved: R_NaInt Rf_error R_alloc R_NilValue R_DimSymbol R_NamesSymbol Rf_coerceVector Rf_allocMatrix Rf_allocVector Rf_asLogical Rf_duplicate Rf_getAttrib Rf_isComplex Rf_isMatrix Rf_isString Rf_mkChar Rf_protect Rf_setAttrib Rf_unprotect Rf_unprotect_ptr LENGTH R_CHAR STRING_ELT SET_STRING_ELT VECTOR_ELT SET_VECTOR_ELT INTEGER REAL COMPLEX R_setLapackRoutines xerbla_ dswap_ dscal_ drot_ lsame_ id...