search for: 1000x1

Displaying 2 results from an estimated 2 matches for "1000x1".

Did you mean: 1000x
2009 Sep 18
1
Incorrect Dimension
...= function ( gen ) matrix ( if (gen[j, i] == 0) al1 [i, 1] + al1 [i, 1] else if (gen [j, i] == 1) al1 [i, 1] + al2 [i, 1] else if (gen [j, i] == 2) al2 [i, 1] + al2 [i, 1] else 999, ncol = loc, nrow = ind) g2 <= function ( gen ) sample (b1, 1, re = T) #b1 is 1x3 and came from a vector 1000X1 (e.g b1 <- c(x [1000,1]...) xx <= if (runif (1) >= (1 - r2)) g1 else g2 g [j, i] <= xx (gen [j, i]) #g was already generated as an 0 matrix (1000x200) and i would like to replace ##by those functios } } Thank you very much -- View this message in context: http://www.nabble.c...
2010 Sep 03
1
Fourteen patches to speed up R
I've continued to work on speeding up R, and now have a collection of fourteen patches, some of which speed up particular functions, and some of which reduce general interpretive overhead. The total speed improvement from these patches is substantial. It varies a lot from one R program to the next, of course, and probably from one machine to the next, but speedups of 25% can be expected in