Re: [Rcpp-devel] Sparse matrix operations

2014-02-03 Thread French, Joshua
orge.r-project.org] On Behalf Of Douglas Bates Sent: 31. januar 2014 21:45 To: French, Joshua Cc: rcpp-devel@lists.r-forge.r-project.org<mailto:rcpp-devel@lists.r-forge.r-project.org> Subject: Re: [Rcpp-devel] Sparse matrix operations On Fri, Jan 31, 2014 at 1:14 PM, French, Joshua mailto:

[Rcpp-devel] Sparse matrix operations

2014-01-31 Thread French, Joshua
Hello everyone, For those of you who have used the sparse matrix capabilities of Armadillo/RcppArmadillo, how seamless are the operations in moving between sparse and dense matrices? I know there are some tricks for getting sparseMatrix objects into SpMat objects (Dirk has a nice Rcpp Gallery

Re: [Rcpp-devel] Use of "Depends: Rcpp" in packages using Rcpp

2014-01-06 Thread French, Joshua
Davor, I¹m not sure if this question is in reference to an email from Brian Ripley, but I was under the impression that we should include Rcpp and/or RcppArmadillo in Depends so that it is not installed for binary versions of the packages. The following excerpt is from an email recently sent out

Re: [Rcpp-devel] Error with NumericMatrix using SourceCpp

2014-01-02 Thread French, Joshua
oshua French mailto:joshua.fre...@ucdenver.edu>> Subject: Re: [Rcpp-devel] Error with NumericMatrix using SourceCpp Hi Joshua, I had the same problem a month or two ago. Try installing Rcpp from source. (that did the trick for me) Best, -- Hao Ye h...@ucsd.edu<mailto:h...@ucsd.edu> On Jan 2,

[Rcpp-devel] Error with NumericMatrix using SourceCpp

2014-01-02 Thread French, Joshua
Hello everyone, I’m getting a weird error anytime I try to use a NumericMatrix in a function compiled using the sourceCpp function. In case it matters, I’m running Mac OS X 10.9.1. I compiled a simple NumericVector function with no problem: library(Rcpp) src <- ' #include using namespace Rc

Re: [Rcpp-devel] Very Large Matrices in RcppArmadillo

2012-07-17 Thread French, Joshua
>To be fair, it's 300k by 300k (not 3mill by 3mill), so: > >R> (30 * 30 * 8) / 2^30 >[1] 670.5523 > >So, I guess 0.67 terabytes ... no problemo ;-) > >-steve I'm getting the picture now. Thanks for the additional example. And Doug, sorry I still missed your earlier point. __

Re: [Rcpp-devel] Very Large Matrices in RcppArmadillo

2012-07-17 Thread French, Joshua
orado Denver joshua.fre...@ucdenver.edu http://math.ucdenver.edu/~jfrench/ Ph: 303-556-6265 Fax: 303-556-8550 On 7/17/12 8:56 AM, "Douglas Bates" wrote: >On Tue, Jul 17, 2012 at 8:14 AM, Dirk Eddelbuettel wrote: >> >> On 16 July 2012 at 23:30, French, Joshua wrot

[Rcpp-devel] Very Large Matrices in RcppArmillao

2012-07-16 Thread French, Joshua
I am doing some linear algebra on large matrices in R and receiving the following error: "allocMatrix: too many elements specified". From what I understand, the error is caused by the fact that R uses 32-bit ints and not 64-bit ints for matrix indices, so R doesn't have a way to represent all

Re: [Rcpp-devel] _ZSt4cout warning

2012-02-13 Thread French, Joshua
http://math.ucdenver.edu/~jfrench/ Ph: 303-556-6265 Fax: 303-556-8550 On 2/13/12 10:52 AM, "Dirk Eddelbuettel" wrote: > >Hi Joshua, > >On 13 February 2012 at 10:32, French, Joshua wrote: >| I got flagged for the _ZSt4cout warning below on a recent CRAN >s

[Rcpp-devel] _ZSt4cout warning

2012-02-13 Thread French, Joshua
Hello everyone, I got flagged for the _ZSt4cout warning below on a recent CRAN submission of an R package which depends on RcppArmadillo. * checking compiled code ... NOTE File ‘/data/smith/R/packages/incoming/SpatialTools.Rcheck/SpatialTools/libs/SpatialTools.so’: Found ‘_ZSt4cout’, possibly