On Dec 28, 4:19 am, "imi kh" <
imran_111...@hotmail.com> wrote:
> "Bruno Luong" <b.lu...@fogale.findmycountry> wrote in message <jdej6d$
99...@newscl01ah.mathworks.com>...
> > "imi kh" <
imran_111...@hotmail.com> wrote in message <jdeek4$
q0...@newscl01ah.mathworks.com>...
> > > Hello
> > > I have sparse matrix of size A= <36864x16641 double> and b= <36864x1 double>, i want to solve for x using conjugate gradient method, but it need A to be square, how i convert A to square matrix so that i can apply conjugate gradient method.
> > > BR
> > > Imi
>
> > Hint: multiply the linear system on its left side by transposed of A.
>
> > Bruno
>
> Thanks for reply, well i have did it but the problem is now it is not showing accurate result, actually i applying it to construct an image when i multiply left side by transpose of A the over all equation now unbalance how to cope this ?
I don't know exactly what you mean by unbalanced. However if you
scale your equations so that the maximum absolute value in every
row of the matrix is unity, you should get better results.
Hope this helps.
Greg