r - Is it possible to do transpositions of big.matrix objects from the bigmemory package? -


i perform transpose of large bigmemory big.matrix b can compute abt. possible in bigmemory? , more importantly how can find documation this? on page 5 of paper on bigmemory http://www.stat.yale.edu/~mjk56/temp/bigmemory-vignette.pdf, authors package supports operations such prod(), colmean(), colsd(), etc, cannot locate documentation on this.

that documentation rather old @ point , rapidly becoming more so. 1 of current developers of bigmemory packages. have begun quite few new updates bigmemory package make more modern , accessible. hope releasing new updated version cran shortly.

that said, transpose functionality part of bigalgebra package. @ moment, under heavy development have been working on extending functions include more simple functions t. fair warning, there chance find bug or two. so, after talking perhaps here potential solution.

install current development branch of bigalgebra

library(devtools) # install dev bigmemory # install_github("kaneplusplus/bigmemory") install_github('cdeterman/bigalgebra') 

this provide t method big.matrix objects.

library(bigalgebra) set.seed(123) bm <- as.big.matrix(matrix(rnorm(25), nrow=5)) bm[]             [,1]       [,2]       [,3]       [,4]       [,5] [1,] -0.56047565  1.7150650  1.2240818  1.7869131 -1.0678237 [2,] -0.23017749  0.4609162  0.3598138  0.4978505 -0.2179749 [3,]  1.55870831 -1.2650612  0.4007715 -1.9666172 -1.0260044 [4,]  0.07050839 -0.6868529  0.1106827  0.7013559 -0.7288912 [5,]  0.12928774 -0.4456620 -0.5558411 -0.4727914 -0.6250393  t(bm)[]            [,1]       [,2]       [,3]        [,4]       [,5] [1,] -0.5604756 -0.2301775  1.5587083  0.07050839  0.1292877 [2,]  1.7150650  0.4609162 -1.2650612 -0.68685285 -0.4456620 [3,]  1.2240818  0.3598138  0.4007715  0.11068272 -0.5558411 [4,]  1.7869131  0.4978505 -1.9666172  0.70135590 -0.4727914 [5,] -1.0678237 -0.2179749 -1.0260044 -0.72889123 -0.6250393 

one follow-up point, seem interested in tcrossprod of 2 matrices. keep in mind create respective binding in bigalgebra package.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -