search for: manderni

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

Did you mean: mandarin
2015 Mar 02
2
R-devel does not update the C++ returned variables
...mory(?) related error: terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Now that I am running the code using .Call. Thanks. On Mon, Mar 2, 2015 at 2:01 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 02/03/2015 3:50 AM, sarah manderni wrote: > > Hi, > > > > Within my R code, I am using a C++ function as below: > > > > overlaps <- matrix(0, nrow=B, ncol=length(N)) > > overlaps.P <- matrix(0, nrow=B, ncol=length(N)) > > > > .C("speedUp", D, S, pD,...
2015 Mar 02
0
R-devel does not update the C++ returned variables
On 02/03/2015 8:46 AM, sarah manderni wrote: > Thanks! I went through the online posts which supports the power of > .Call over .C. But my probably naive question is why does this work > for my code with R but not R-devel? Because of the change mentioned in the NEWS file. > And another question is related to using .Call...
2015 Feb 18
2
Package functioning with R but not R-devel
Hi, I am using an R package which includes C++ code inside. The package is functioning well under latest official R version but not under R-devel. I know that the C++ part is not functioning properly and I get an error using R-devel (it returns nothing to the R part of the program). Do I need to debug the C++ code separately for R-devel? Would be grateful if you could suggest any links with
2015 Mar 02
2
R-devel does not update the C++ returned variables
Hi, Within my R code, I am using a C++ function as below: overlaps <- matrix(0, nrow=B, ncol=length(N)) overlaps.P <- matrix(0, nrow=B, ncol=length(N)) .C("speedUp", D, S, pD, pS, nrow(D), as.integer(N), length(N), ssq[i], i, as.integer(B), overlaps, overlaps.P, DUP=FALSE) the function "speedUp", is supposed to update matrices overlaps
2015 Feb 18
0
Package functioning with R but not R-devel
.... That said, your code is "probably" doing something it shouldn't if things have suddenly stopped working. Try running R devel under gdb if you want to try to figure it out, e.g. (on linux, and possibly mac) <dir-for-Rdevel>/R -d gdb ~G On Wed, Feb 18, 2015 at 9:02 AM, sarah manderni <sarahmanderni at gmail.com> wrote: > Hi, > > I am using an R package which includes C++ code inside. The package is > functioning well under latest official R version but not under R-devel. I > know that the C++ part is not functioning properly and I get an error using > R...
2015 Mar 02
0
R-devel does not update the C++ returned variables
On 02/03/2015 3:50 AM, sarah manderni wrote: > Hi, > > Within my R code, I am using a C++ function as below: > > overlaps <- matrix(0, nrow=B, ncol=length(N)) > overlaps.P <- matrix(0, nrow=B, ncol=length(N)) > > .C("speedUp", D, S, pD, pS, nrow(D), as.integer(N), length(N)...