[R] Memory Efficiency of Symmetric Matrix

2009-01-06 Thread Nathan S. Watson-Haigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm generating a symmetric correlation matrix using a data matrix as input: mat - cor(data.mat) My question is: Is there a more memory efficient way to store this data? For instance, since: all(mat == t(mat)) every value is duplicated, and I should

Re: [R] Memory Efficiency of Symmetric Matrix

2009-01-06 Thread Søren Højsgaard
You can do mat[lower.tri(mat, diag=F)] Søren Fra: r-help-boun...@r-project.org på vegne af Nathan S. Watson-Haigh Sendt: on 07-01-2009 01:28 Til: r-help@r-project.org Emne: [R] Memory Efficiency of Symmetric Matrix -BEGIN PGP SIGNED MESSAGE- Hash

Re: [R] Memory Efficiency of Symmetric Matrix

2009-01-06 Thread Steven McKinney
: Re: [R] Memory Efficiency of Symmetric Matrix You can do mat[lower.tri(mat, diag=F)] Søren Fra: r-help-boun...@r-project.org på vegne af Nathan S. Watson-Haigh Sendt: on 07-01-2009 01:28 Til: r-help@r-project.org Emne: [R] Memory Efficiency of Symmetric Matrix

Re: [R] Memory Efficiency of Symmetric Matrix

2009-01-06 Thread andrew
-project.org på vegne af Nathan S. Watson-Haigh Sendt: on 07-01-2009 01:28 Til: r-h...@r-project.org Emne: [R] Memory Efficiency of Symmetric Matrix -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm generating a symmetric correlation matrix using a data matrix as input: mat - cor(data.mat) My

Re: [R] Memory Efficiency of Symmetric Matrix

2009-01-06 Thread Nathan S. Watson-Haigh
to test it out with my usual 24k x 24k size matrices. Fra: r-help-boun...@r-project.org på vegne af Nathan S. Watson-Haigh Sendt: on 07-01-2009 01:28 Til: r-h...@r-project.org Emne: [R] Memory Efficiency of Symmetric Matrix I'm generating a symmetric