I generated a random matrix X of 10,000 by 10,000 and a random vector by 10,000 by 1.
I just broke my calculations step by step. (Code shown below)
- Calculated the transposition and held it in the matrix K
- Then I calculated the matrix A by multiplying K by X
- Computed vector b by multiplying K by vector y
- Finally, I used the backslash operator on A and b to solve
I had no problems calculating. This took some time, but breaking down the operations into the smallest groups helped prevent computer overload. However, this may be the composition of the matrix used (i.e., Sparse, decimal, etc.).
X = randi(2000, [10000, 10000]); y = randi(2000, 10000, 1); K = X'; A = K*X; b = K*y; S = A\b;
source share