search for: vecrec

Displaying 11 results from an estimated 11 matches for "vecrec".

Did you mean: vecreg
2004 Apr 13
1
shared mem advice
...IPC_CREAT); shared = (SEXP) shmat(shared_mem_id, (void *)0, 0); my_allocVector(SEXPTYPE type, int length, SEXP shared) { SEXP s=shared; .... And erase this if: ################################################# if(size >= (LONG_MAX / sizeof(VECREC))-sizeof(SEXPREC_ALIGN) || (s = malloc(sizeof(SEXPREC_ALIGN) + size * sizeof(VECREC)) ) == NULL) { { ################################################# Alex
2011 Nov 27
1
generating a vector of y_t = \sum_{i = 1}^t (alpha^i * x_{t - i + 1})
...p(", alpha, ",", n:1, "))", sep = "") , sep = ","), collapse = ","), ")", sep = ""))), nc = n, byrow = TRUE) colSums(up.mat * exp.mat) } vecRec(c(1, 2, 3), 0.5) ## Sweep is slow, shouldn't use it. matRec <- function(x, alpha){ n <- length(x) exp.mat <- matrix(rep(x, each = n), nc = n, byrow = TRUE) up.mat <- sweep(matrix(cumprod(rep(alpha, n)), nc = n, nr = n, byrow = TRUE...
2005 Mar 10
1
R_alloc with more than 2GB (PR#7721)
...ize_t size = nelem * eltsize; SEXP s = allocString(size); ... } SEXP allocString(int length) { return allocVector(CHARSXP, length); } SEXP allocVector(SEXPTYPE type, R_len_t length) { ... case CHARSXP: size = BYTE2VEC(length + 1); ... malloc(sizeof(SEXPREC_ALIGN) + size * sizeof(VECREC))) ... }
2011 Aug 14
0
Improved version of Rprofmem
...= page; R_GenHeap[node_class].PageCount++; @@ -2312,6 +2317,13 @@ } } + if (R_IsMemReporting) { + if (!R_MemPagesReporting + || size > 0 && node_class >= NUM_SMALL_NODE_CLASSES) + R_ReportAllocation (sizeof(SEXPREC_ALIGN) + size * sizeof(VECREC), + type, length); + } + /* save current R_VSize to roll back adjustment if malloc fails */ old_R_VSize = R_VSize; @@ -2351,9 +2363,6 @@ s = malloc(sizeof(SEXPREC_ALIGN) + size * sizeof(VECREC)); } if (s != NULL) success = TRUE; -#ifdef R_M...
2017 Oct 06
1
SIGSEGV during startup
...context around memory.c:908 is below, and suggests the issue manifests with the combination of the ALTREP framework and valgrind instrumentation level >1. #if VALGRIND_LEVEL > 1 if (NodeClassSize[node_class] > 0) VALGRIND_MAKE_MEM_NOACCESS(DATAPTR(s), NodeClassSize[node_class]*sizeof(VECREC)); #endif -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com R/Finance 2017 | www.rinfinance.com
2002 Jun 01
1
R beyond 2 Gb
Hi, I'm working with a fairly massive data set and I need to allocate memory beyond the 2GB limit. I'm using R 1.5.0 on a SunOS 5.8 machine (16 GB RAM). Has anyone been succesful at patching the code to get rid of the 2GB memory limit? (there are quite a few places in which vsize is an int or tested against INT_MAX). I'll appreciate any guidance you can provide. Thanks. Regards,
2008 Feb 23
0
patch: two minor debugging-related pointer protection stack issues (PR#10832)
...,7 @@ R_Suicide("couldn't allocate memory for pointer stack"); R_PPStackTop = 0; #if VALGRIND_LEVEL > 1 - VALGRIND_MAKE_NOACCESS(R_PPStackTop+R_PPStackSize,PP_REDZONE_SIZE); + VALGRIND_MAKE_NOACCESS(R_PPStack+R_PPStackSize,PP_REDZONE_SIZE); #endif vsfac = sizeof(VECREC); R_VSize = (((R_VSize + 1)/ vsfac)); @@ -2329,11 +2329,11 @@ } while ( R_PPStack[--i] != s ); /* OK, got it, and i is indexing its location */ - /* Now drop stack above it */ + /* Now drop stack above it, if any */ - do { - R_PPStack[i] = R_PPStack[i + 1]; - }...
2000 May 30
2
Documentatio: typo in Writing R Extensions (PR#557)
Full_Name: stephen eglen Version: 1.0.0 OS: Unix (OSF/1) Submission from: (NULL) (129.215.238.26) Hi, in the documentation `Writing R Extensions', the section 3.6.1 (handling the effects of garbage collection) has the following typo: Protecting a SEXP pointer protexts ... Should that be `protects'? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
1997 Apr 16
0
R-alpha: R-FAQ
...hat R maintains separate areas for fixed and variable sized objects. The first of these is allocated as an array of SEXPRECs assembled in a list using ``cons cells'' (ordered pairs each containing an element of the list and a pointer to the next cell), and the second as an array of VECRECs. The -n option can be used to specify the number of cons cells (each occupying 16 bytes) which R is to use (the default is 200000), and the -v option to specify the size of the vector heap in megabytes (the default is 2). Only integers are allowed for both options. E.g., to read in a...
1997 Apr 23
0
R-beta: R-FAQ v0.1-0
...hat R maintains separate areas for fixed and variable sized objects. The first of these is allocated as an array of SEXPRECs assembled in a list using ``cons cells'' (ordered pairs each containing an element of the list and a pointer to the next cell), and the second as an array of VECRECs. The -n option can be used to specify the number of cons cells (each occupying 16 bytes) which R is to use (the default is 200000), and the -v option to specify the size of the vector heap in megabytes (the default is 2). Only integers are allowed for both options. E.g., to read in a...
1997 Apr 23
0
R-beta: R-FAQ v0.1-0
...hat R maintains separate areas for fixed and variable sized objects. The first of these is allocated as an array of SEXPRECs assembled in a list using ``cons cells'' (ordered pairs each containing an element of the list and a pointer to the next cell), and the second as an array of VECRECs. The -n option can be used to specify the number of cons cells (each occupying 16 bytes) which R is to use (the default is 200000), and the -v option to specify the size of the vector heap in megabytes (the default is 2). Only integers are allowed for both options. E.g., to read in a...