Creating huge fourier matrix

2 ビュー (過去 30 日間)
Matteo Cencini
Matteo Cencini 2015 年 12 月 30 日
コメント済み: Christine Tobler 2015 年 12 月 31 日
I need to minimize |FT^-1(Ax-B)| using lsqr. A is a huge matrix which I had to define using spalloc. Since fft() can't handle sparse matrix, I'm trying to perform the fourier transform via multiplication with fourier matrix
F=dftmtx(N)
in order to compute
x=lsqr(F*A,fft(B))
However, N is too large so I can't create F. Is there any method to handle large fourier matrix? Thank you for the help.

回答 (1 件)

Matt J
Matt J 2015 年 12 月 30 日
編集済み: Matt J 2015 年 12 月 30 日
Note that | | FT^-1(Ax-B) | | = | | Ax-B | |. This can be seen from Parseval's theorem, or just from basic properties of orthogonal matrices. In other words, you can equivalently just do lsqr(A,B) or A\B and there is no need to actually implement the FT operator at all.
Note also that lsqr(P,Q) does not require that P be a matrix. In the documentation for lsqr, you will see that it can also be a function handle to a function that implements the operations P*x and P' * x.
  3 件のコメント
Matt J
Matt J 2015 年 12 月 31 日
Then you should use a function handle, as I also suggested.
Christine Tobler
Christine Tobler 2015 年 12 月 31 日
You could take a look at example 2 in the lsqr documentation for how to define a function handle input to lsqr.

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

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by