Redian新闻
>
请教:如何用least square approach解超定方程组
avatar
请教:如何用least square approach解超定方程组# Computation - 科学计算
E*r
1
请问:如何用least square approach解超定线性方程组?
Use a least squares approach to solve overdetermined system of
linear equations?
用MATLAB解很容易,一下就出来了,但是怎么用C的代码解呢?
先谢了!
avatar
b*y
2
You can use subroutines in CLAPACK.
Dense LS-problem is usually solved using:
1. Normal equation
2. QR factorization
3. SVD

【在 E********r 的大作中提到】
: 请问:如何用least square approach解超定线性方程组?
: Use a least squares approach to solve overdetermined system of
: linear equations?
: 用MATLAB解很容易,一下就出来了,但是怎么用C的代码解呢?
: 先谢了!

avatar
E*r
3
Thank you.
CLAPACK seems to be designed in Linux? I don't
know how to make it work in Windows.
I found a book 'numeical recipes in C'. Maybe
I will use SVD now.

【在 b*****y 的大作中提到】
: You can use subroutines in CLAPACK.
: Dense LS-problem is usually solved using:
: 1. Normal equation
: 2. QR factorization
: 3. SVD

avatar
b*y
4
There is a win32 version of clapack.
You can check them out from netlib.

【在 E********r 的大作中提到】
: Thank you.
: CLAPACK seems to be designed in Linux? I don't
: know how to make it work in Windows.
: I found a book 'numeical recipes in C'. Maybe
: I will use SVD now.

avatar
h*m
5
如果不是很大的矩阵的话,比如小于10000*10000的,
用svd比较合适。但对于更大型的稀疏矩阵方程,lsqr更
优越一些,其特点是占用内存比svd小很多,但其解的
可靠性也相应比svd小一些。

【在 b*****y 的大作中提到】
: You can use subroutines in CLAPACK.
: Dense LS-problem is usually solved using:
: 1. Normal equation
: 2. QR factorization
: 3. SVD

相关阅读
Postdoc position on biomedical image processing (转载)申请访问学者国内数学master申请美国CS问题请教想转行-Master of Information Management去年12月《福布斯》文章,波音787软件需重写如何合并两个数据文件 (转载)统计杂志专刊征稿PhD student positions at <a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="bffafafcecffead1d6c9dacdccd6cbc6">[email protected]</a><script data-cfhash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */</script> of California, Merced哪个cluster性能更好?Characterization 与 Evaluation 这两个概念的区别是什么?cs辅导哪里有?1 opening position in Siemens PLM Software跪求Visualization, Data Mining, Computer Graphics 方面的审想内推到facebook的可以联系我内推哦~CS还会一直火下去吗?现存的早于四库全书版本的隋书里,都没有记载圆周率的部分祝大家新春快乐,猴年大吉!CS master/phd 兼职(时薪 25-30美金)求个计算机博后职位有人搞Big Data的吗?
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。