Skip to content
Prev 1557 / 10988 Next

[Rcpp-devel] Using namespaces to improve code readability

I note that employing the namespace declaration -  using namespace arma;
- allows one to use the declaration of a new armadillo matrix under an
RcppArmadillo header with - mat X(Xr.begin() .... - instead of -
arma::mat X(Xr.begin() ...

 

Do you not recommend this approach due to possibility for overlapping
class names between Rcpp and armadillo?

 

Thanks, Terrance Savitsky

 


__________________________________________________________________________

This email message is for the sole use of the intended recipient(s) and
may contain confidential information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101216/79907d9a/attachment.htm>