How can I get good matrix approximations using a sparse matrix?

I have a matrix A (dimension 4000000 x 5) and a sparse matrix B (dimension 4000000 x 2000000). Now I am searching for an approximation of X: A * X = B
Also I need an approximation for Y: A * Y * A' = C (C is a sparse 4000000 x 4000000 matrix)

 採用された回答

Matt J
Matt J 2013 年 11 月 4 日
編集済み: Matt J 2013 年 11 月 4 日

0 投票

X=A\B;
Y=A\C/A';

3 件のコメント

Steffen
Steffen 2013 年 11 月 4 日
Error using \
Out of memory. Type HELP MEMORY for your options.
Matt J
Matt J 2013 年 11 月 5 日
Ah well. Then alternatively
Ap=pinv(A);
X=Ap*B;
Y=Ap*C*Ap';
Steffen
Steffen 2013 年 11 月 5 日
This works but I can't calculate
A * X
afterwards without getting the memory error.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSparse Matrices についてさらに検索

質問済み:

2013 年 11 月 4 日

コメント済み:

2013 年 11 月 5 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by