search for: do_transpose

Displaying 1 result from an estimated 1 matches for "do_transpose".

Did you mean: cs_transpose
2010 Aug 26
2
Speeding up transpose
...le or no gain from the modification when transposing a row or column vector, however. (I think it must be that on these machines multiplies and divides do not take constant time, but are faster when, for instance, dividing by 1.) I've appended below the new version of the modified part of the do_transpose function in src/main/array.c. Radford Neal ---------------------------------------------------------------------- PROTECT(r = allocVector(TYPEOF(a), len)); switch (TYPEOF(a)) { case LGLSXP: case INTSXP: for (i = 0, j = 0; i<len; i += 1, j += nrow) { if...