[Rcpp-devel] Rcpp+bigmemory

2013-04-01 Thread Aileen Lin
Problem solved. Need to add bigmemory after ' linking:' in description file. Thanks. Aileen Lin View my profile: au.linkedin.com/in/aileen2 ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/ma

[Rcpp-devel] rcpp + bigmemory

2013-04-01 Thread Aileen Lin
Hi there, I tried to build a package where I used rcpp and bigmemory. My .cpp file starts with: // [[Rcpp::depends(bigmemory)]] #include #include using namespace Rcpp; ~~~ However, there is an error message: devtools::document()Updating cafs documentation

Re: [Rcpp-devel] Negative indexing in Rcpp

2013-04-01 Thread Dirk Eddelbuettel
Hi Tiago, On 1 April 2013 at 17:41, Tiago Fragoso wrote: | Say I have a 10x10 matrix A. If I want to access everything remaining after I | delete columns 1, 5 and 10, all I have to do is  | | A[,-c(1,5,10)] | | Is there a convenient way to do it in Rcpp (or using Armadillo objects)? Armadillo

[Rcpp-devel] Negative indexing in Rcpp

2013-04-01 Thread Tiago Fragoso
Hello, Say I have a 10x10 matrix A. If I want to access everything remaining after I delete columns 1, 5 and 10, all I have to do is A[,-c(1,5,10)] Is there a convenient way to do it in Rcpp (or using Armadillo objects)? Best regards, Tiago ___ Rcpp-

Re: [Rcpp-devel] MatrixRow.h printout

2013-04-01 Thread Dirk Eddelbuettel
Hi Kevin, On 1 April 2013 at 12:37, Kevin Heins wrote: | I just recently updated to the new version of  R and Rcpp (I don't recall the | previous version of Rcpp that I was using, but it was several months old; just | updated from R 2.15.2 to 2.15.3). Anyway, previously I had no problems but now

[Rcpp-devel] MatrixRow.h printout

2013-04-01 Thread Kevin Heins
I just recently updated to the new version of R and Rcpp (I don't recall the previous version of Rcpp that I was using, but it was several months old; just updated from R 2.15.2 to 2.15.3). Anyway, previously I had no problems but now whenever I try to something akin to: some_matrix(i,_) = some_v

Re: [Rcpp-devel] Largest size of a NumericMatrix, segfaults and error messages

2013-04-01 Thread Dirk Eddelbuettel
On 1 April 2013 at 17:04, Ramon Diaz-Uriarte wrote: | | | | On Mon, 1 Apr 2013 08:15:48 -0500,Dirk Eddelbuettel wrote: | | > On 1 April 2013 at 14:48, Ramon Diaz-Uriarte wrote: | > | | > | Dear All, | > | | > | I am confused about creating Rcpp Numeric Matrices larger than | > | .Machine$in

Re: [Rcpp-devel] Largest size of a NumericMatrix, segfaults and error messages

2013-04-01 Thread Ramon Diaz-Uriarte
On Mon, 1 Apr 2013 08:15:48 -0500,Dirk Eddelbuettel wrote: > On 1 April 2013 at 14:48, Ramon Diaz-Uriarte wrote: > | > | Dear All, > | > | I am confused about creating Rcpp Numeric Matrices larger than > | .Machine$integer.max. The code below illustrates some of the points > | (probably with

Re: [Rcpp-devel] Largest size of a NumericMatrix, segfaults and error messages

2013-04-01 Thread Dirk Eddelbuettel
On 1 April 2013 at 14:48, Ramon Diaz-Uriarte wrote: | | Dear All, | | I am confused about creating Rcpp Numeric Matrices larger than | .Machine$integer.max. The code below illustrates some of the points | (probably with too much detail ;-). These are some things that puzzle me: Which R version

[Rcpp-devel] Largest size of a NumericMatrix, segfaults and error messages

2013-04-01 Thread Ramon Diaz-Uriarte
Dear All, I am confused about creating Rcpp Numeric Matrices larger than .Machine$integer.max. The code below illustrates some of the points (probably with too much detail ;-). These are some things that puzzle me: 1. For some values of number of rows and columns, creating the matrix is not allo