Displaying 2 results from an estimated 2 matches for "xx_".
Did you mean:
xs_
2011 Apr 15
1
[Rcpp-devel] Find number of elements less than some number: Elegant/fastsolution needed
...R's sort (src1, f1-f3). If i modify
SEXP in-place (and this always confuses me, so I tend to avoid it),
I'm seeing an additional ~5-10% speed gain (src2, f5) -- the advantage
of this last seems to be primarily in memory-constrained applications.
On to the code!
src = '
NumericVector xx_(clone(x)), yy_(clone(y));
int nxx = xx_.size();
int nyy = yy_.size();
arma::vec xx(xx_), yy(yy_);
yy = sort(yy);
xx = sort(xx);
//
//
int j = 0; //gt index for yy
for (int i=0; i < nxx; i++) {
while ((j < nyy) && ( xx(i) > yy(j) ) ) {
j++;
}
xx_(i) = j;
}
ret...
2006 Jan 25
1
xx-0.1.0 : xhtml and xml make it twice as dirty
...ld be illegal </body>
</html>
<========< sample/b.rb >========>
~ > cat sample/b.rb
require "xx"
#
# xml is as easy as html. xx extends your object very carefully, adding an
# one method that is not prefaced with ''xx_'' : ''method_missing''. the
# method_missing defined is conservatively, recognizing only methods that
end
# with underscore (''_'') as ''tag'' methods intended to generate markup. as
with
# html, attributes may be passed to a...