Hello,

Now that we have extended sugar so that it can deal with matrices, e.g :

signature( x = "numeric", y = "numeric" ),
                                '
                                NumericVector xx(x) ;
                                NumericVector yy(y);
                                NumericMatrix m = outer( xx, yy, 
std::plus<double>() ) ;
                                return m ;
                                '               )



I'd like to have a sugar version of apply. We cannot retain the same interface :

apply( { matrix expression }, { 1 or 2 }, { function } )

because we need compile time dispatch, which is not possible with the second argument. So I'm just wondering how we should call the row and column versions:

apply_1
apply_2
apply_row
apply_col
col_apply
row_apply

Any preference ?

Romain

--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/aJHNLV : Rmetrics slides
|- http://bit.ly/98Uf7u : Rcpp 0.8.1
`- http://bit.ly/c6YnCi : graph gallery collage

_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to