Re: [Rcpp-devel] trans() changed in latest RcppArmadillo

2011-06-06 Thread baptiste auguie
Hi Conrad, all, Thanks for the fixes and fast release. I have just tested RcppArmadillo_0.2.22 on my code and it works fine. Best regards, baptiste On 7 June 2011 03:52, Conrad Sand wrote: > Hi Baptise & Terrance, > > I've fixed several issues in Armadillo and released an updated version > (1

Re: [Rcpp-devel] as cube

2011-06-06 Thread MISRA, SANJOG
Richard, I usually use a list for this (see below). If anybody has a simpler way, I would love to learn about it... Sanjog src.cube = ' Rcpp::List aL(aL_); int nr = Rcpp::as(nr_); int nc = Rcpp::as(nc_); int ns = Rcpp::as(ns_); arma::cube a(nr,nc,ns); for(int i=0; i(aL(i)); }

Re: [Rcpp-devel] [ANN] RcppArmadillo 0.2.22

2011-06-06 Thread Dirk Eddelbuettel
On 6 June 2011 at 08:35, Dirk Eddelbuettel wrote: | | Armadillo 1.99.4 is out with fixes for small matrices, and this has been | wrapped into RcppArmadillo 0.2.22 which is now on CRAN. Please test this and | see if it addresses the issues with the prior pre-releases of Armadillo 2.0.0. | | The

Re: [Rcpp-devel] trans() changed in latest RcppArmadillo

2011-06-06 Thread Conrad Sand
Hi Baptise & Terrance, I've fixed several issues in Armadillo and released an updated version (1.99.4). Dirk has wrapped it up in RcppArmadillo 0.2.22, which should be hitting the mirrors soon. Could you try your code again and let me know if you encounter any problems ? With regards, Conrad

[Rcpp-devel] as cube

2011-06-06 Thread Richard Chandler
Hi, I would like to do something like this: src.cube <- " arma::cube a = as(aR); return wrap(a); " fx <- cxxfunction(signature(aR="array"), src.cube, plugin="RcppArmadillo") fx(array(1:27, c(3,3,3))) But it fails. Can someone suggest a good alternative? I tried to create the cube on

[Rcpp-devel] [ANN] RcppArmadillo 0.2.22

2011-06-06 Thread Dirk Eddelbuettel
Armadillo 1.99.4 is out with fixes for small matrices, and this has been wrapped into RcppArmadillo 0.2.22 which is now on CRAN. Please test this and see if it addresses the issues with the prior pre-releases of Armadillo 2.0.0. The NEWS entry is below. Cheers, Dirk 0.2.22 2011-06-06 o

Re: [Rcpp-devel] Create an instance of a reference class for a C++ class exported as a module from within C++?

2011-06-06 Thread Romain Francois
Le 06/06/11 06:09, Christian Gunning a écrit : At the moment the only way i see is to make an R call to "new" and construct the object this way... Many of the methods for this class return other members of this class. Can I create a new instance of the reference class in R from within the mod

Re: [Rcpp-devel] namespace error

2011-06-06 Thread soeren . vogel
> On 06.06.2011, at 14:03, Romain Francois wrote: > > Le 04/06/11 14:53, soeren.vo...@uzh.ch a écrit : > >> On 02.06.2011, at 22:51, Laurent Gatto wrote: >> >>> On 2 June 2011 20:39, wrote: On 02.06.2011, at 18:50, Dirk Eddelbuettel wrote: > On 2 June 2011 at 18:37, soeren.vo...@

Re: [Rcpp-devel] RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge?

2011-06-06 Thread Dirk Eddelbuettel
On 6 June 2011 at 09:56, baptiste auguie wrote: | > | > I don't think it is a matter of fixing the R-Forge server. I think it is a | > | > matter of making your package installable on the largest number of user | > | > systems.  Also try win-builder.r-project.org to see how it fares on that | > |

Re: [Rcpp-devel] namespace error

2011-06-06 Thread Romain Francois
Le 04/06/11 14:53, soeren.vo...@uzh.ch a écrit : On 02.06.2011, at 22:51, Laurent Gatto wrote: On 2 June 2011 20:39, wrote: On 02.06.2011, at 18:50, Dirk Eddelbuettel wrote: On 2 June 2011 at 18:37, soeren.vo...@uzh.ch wrote: When R CMD CHECKing the package, I repeatedly get the error: | |

Re: [Rcpp-devel] Wrapping uBlas Matrices into Rcpp Matrices

2011-06-06 Thread Romain Francois
Le 02/06/11 14:43, Cedric Ginestet a écrit : Hi again, I have tried to do the same for Matrices. Here my naive attempt: template Rcpp::Matrix< Rcpp::traits::r_sexptype_traits::rtype > ublas2rcpp( const matrix& x ){ return Rcpp::Ma

Re: [Rcpp-devel] Constructor for templated Rcpp::Matrix class from Rcpp::Dimension fails

2011-06-06 Thread Romain Francois
Le 02/06/11 12:10, rom...@r-enthusiasts.com a écrit : Thanks. Making init protected instead of private in Vector.h solved it for me. I cant commit the fix from the eurostar. Romain Done in rev 3046. Le 1 juin 2011 à 21:36, Douglas Bates a écrit : I am developing classes for sparse matri

Re: [Rcpp-devel] [Rd] Interfacing a C++ class

2011-06-06 Thread Romain Francois
Le 04/06/11 16:31, soeren.vo...@uzh.ch a écrit : Hello Apologies for cross-posting, the discussion should (if) go to R-devel, but I also want to reach the rcpp-devel people. My C++ class FOO is a module available through Rcpp, and it works fine and is -- so far -- bug free. With trying to fu

Re: [Rcpp-devel] Create an instance of a reference class for a C++ class exported as a module from within C++?

2011-06-06 Thread Christian Gunning
> At the moment the only way i see is to make an R call to "new" and construct > the object this way... >> Many of the methods for this class return other members of this class. >> Can I create a new instance of the reference class in R from within >> the module? I'm sure it is possible, I'm jus

Re: [Rcpp-devel] RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge?

2011-06-06 Thread baptiste auguie
Thank you for the explanations below. On 5 June 2011 10:40, Dirk Eddelbuettel wrote: > > On 5 June 2011 at 10:12, baptiste auguie wrote: > | Hi Dirk and all, > | > | On 4 June 2011 12:04, Dirk Eddelbuettel wrote: > | > > | > Baptiste, > | > > | > On 4 June 2011 at 11:45, baptiste auguie wrote: >