search for: major_ord

Displaying 2 results from an estimated 2 matches for "major_ord".

Did you mean: major_order
2009 Sep 11
1
transposing a distance matrix in R
...e, no just put it together: R> dist <- m[lower.tri(m)] R> who <- who.vs.who[lower.tri(m),] R> names(dist) <- paste(who[,1], who[,2], sep=".vs.") R> dist B.vs.A C.vs.A C.vs.B 1 0 1 HTH, -steve [1] Column major format: http://en.wikipedia.org/wiki/Row-major_order#Column-major_order -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact
2013 Dec 06
3
Matrix memory layout R vs. C
Hi everybody, I'm trying to pass a matrix from R to C, where some computation is done for performance reasons, and back to R for evaluation. But I've run into the problem that R and C seem to have different ways of representing the matrix in main memory. The C representation of a 2D matrix in linear memory is concatenation of the rows whereas in R, it's a concatenation of the