[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: insufficient memory for matrix 11 r(950)

From   "Nick Cox" <>
To   <>
Subject   st: RE: insufficient memory for matrix 11 r(950)
Date   Tue, 29 Jul 2008 17:20:33 +0100

It sounds as if your loop should be not to create 1100 matrices, and
then add them, but to keep only a running sum. 


Victor, Jennifer Nicoll

I am receiving a memory error while trying to create (and store) many
matrices simultaneously.  Increasing the memory allocation to Stata (set
mem 1g) does not help.  Essentially, I am taking an nx1 vector and
multiplying it by its transpose to create a 438x438 matrix.  I'm doing
this 1100 times and then need to add all 1100 matrices together.  State
gives me the error "insufficient memory for matrix 11 r(950)" around
matrix 440 (or 700 depending on the trial).  Advice?

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index