Skip to content
Back to formatted view

Raw Message

Message-ID: <4963F720.2020903@csiro.au>
Date: 2009-01-07T00:28:16Z
From: Nathan S. Watson-Haigh
Subject: 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 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 be able to almost half the memory usage for large matrices.

Any thoughts/comments?

Cheers,
Nathan


- --
- --------------------------------------------------------
Dr. Nathan S. Watson-Haigh
OCE Post Doctoral Fellow
CSIRO Livestock Industries
Queensland Bioscience Precinct
St Lucia, QLD 4067
Australia

Tel: +61 (0)7 3214 2922
Fax: +61 (0)7 3214 2900
Web: http://www.csiro.au/people/Nathan.Watson-Haigh.html
- --------------------------------------------------------

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklj9yAACgkQ9gTv6QYzVL6MGQCg1CHsRGAwEMah/8ZuZ9QFI6O5
lcIAnjZ68DE9FABLMd07A3AfdMPRpXIH
=5bet
-----END PGP SIGNATURE-----