search for: itmp

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

Did you mean: imp
2012 Jan 07
3
Putting an index explicitly into function code --- a curiosity.
I want to create a list of functions in a for loop, with the index of the loop appearing explicitly in the function code. After quite a bit of thrashing around I figured out how to do it. Here is a toy example: junk <- vector("list",4) for(i in 1:4) { itmp <- i junk[[i]] <- eval(bquote(function(x){42 + .(itmp)*x})) } So I'm *basically* happy, but there's something I don't understand: Why do I need "itmp"? That is, if I do junk <- vector("list",4) for(i in 1:4) { junk[[i]] <- eval(bquote(functio...
2015 Feb 11
2
[PATCH] Fix for client certificate validation does not work
...ot;PRIVATE KEY---") != NULL; } -static void load_ca(X509_STORE *store, const char *ca, - STACK_OF(X509_NAME) **xnames_r) +static void load_ca(SSL_CTX *ssl_ctx, const char *ca) { - /* mostly just copy&pasted from X509_load_cert_crl_file() */ - STACK_OF(X509_INFO) *inf; - X509_INFO *itmp; - X509_NAME *xname; - BIO *bio; - int i; - - bio = BIO_new_mem_buf(t_strdup_noconst(ca), strlen(ca)); - if (bio == NULL) - i_fatal("BIO_new_mem_buf() failed"); - inf = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL); - if (inf == NULL) - i_fatal("Couldn't parse ssl_ca: %s",...
2009 Apr 09
0
bug/suggestion: debugger should respect option "deparse.max.lines" when printing the call (PR#13647)
...-patched/src/main/eval.c *** R-2.8.1/src/main/eval.c 2008-10-05 18:05:02.000000000 -0400 --- R-2.8.1-patched/src/main/eval.c 2009-04-09 09:45:03.000000000 -0400 *************** *** 526,531 **** --- 526,532 ---- volatile SEXP newrho; SEXP f, a, tmp; RCNTXT cntxt; + int itmp; /* formals = list of formal parameters */ /* actuals = values to be bound to formals */ *************** *** 609,615 **** --- 610,621 ---- SET_DEBUG(newrho, DEBUG(op)); if (DEBUG(op)) { Rprintf("debugging in: "); + + itmp = asInteger(GetOption(ins...
2009 Mar 25
2
Listing of LAPACK error codes
...ning and handling of error codes 1 and 2. In Lapack.c I only see the reference to the variable info in certain Fortran code: F77_CALL(dsyevr)(jobv, range, uplo, &n, rx, &n, &vl, &vu, &il, &iu, &abstol, &m, rvalues, rz, &n, isuppz, &tmp, &lwork, &itmp, &liwork, &info); if (info != 0) error(_("error code %d from Lapack routine '%s'"), info, "dsyevr"); lwork = (int) tmp; liwork = itmp; work = (double *) R_alloc(lwork, sizeof(double)); iwork = (int *) R_alloc(liwork, sizeof(int));...
2006 May 08
2
have any one tried Snmp extension to Net-SNMP daemon
...s_h 1 #define SOAP_BEGIN_NAMESPACE(ns) #define SOAP_END_NAMESPACE(ns) #endif and added CFLAGS = -Wall -Wno-parentheses -c -I$(INCLUDE) -I$(TMP) -DWITH_SOAPDEFS_H to make file now the error is gon but now i have error like gcc -Wall -Wno-parentheses -c -Iinclude -Itmp -DWITH_SOAPDEFS_H -c -o src/server/lex/lex.yy.o src/server/lex/lex.yy.c src/server/lex/lex.yy.c:1117: warning: ''yyunput'' defined but not used gcc -Wall -Wno-parentheses -c -Iinclude -Itmp -DWITH_SOAPDEFS_H -c -o src/server/lex/y.tab.o src/server/lex/y.tab.c src/serve...
2024 Feb 20
1
Compiling libR as a standalone C library for java+jni (-fPIC)
...ure.ac:2880: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION configure.ac:2881: error: possibly undefined macro: AM_GNU_GETTEXT make[1]: *** [Makefile:49: configure] Error 1 ``` removing the XXXFLAGS=YYY and --prefix (?) allows R to be compiled but It's not loaded into java. ``` gcc? -ITMP -I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/linux \ ??? -LTMP/R-4.3.2/lib `TMP/R-4.3.2/bin/R CMD config --cppflags` -shared -fPIC -o TMP/libRSession.so? -g RSession.c TMP/R-4.3.2/lib/libR.a /usr/bin/ld: TMP/R-4.3.2/lib/libR.a(objects.o): warning: relocation against `R_dot_Method' in read-on...