Extra task – NLAA– Numerical Linear Algebra with ApplicationsInstructions: Please upload to Canvas by the end of the Friday lecture in week 8 (March 8) asingle file corresponding to part (b) of the task below. Please name your file as suggested inthe question.Plagiarism check: Your electronic submissions should be your own work and should not beidentical or similar to other submissions. A check for plagiarism will be performed on all submissions.Let A ∈ Rn×m have full rank and let b ∈ Rn. Consider the least squares problem: find the minimiserx ∈ Rm of the functional F : Rm → [0,∞) given byF(x) := kb Axk2.(a) Modify the algorithm for the LU-factorization with partial pivoting so that it constructs thefactorizationP A = LU, (1)where P is a permutation matrix, U ∈ Rn×nis upper triangular and L代写Linear Algebra作业、代做Canvas留学生作业、代做matlab编程语言作业、代写matlab实验作业 ∈ Rm×nis unit lowertriangular (i.e., for 1 ≤ i ≤ n, Lij = 0 if j > i and Lii = 1). Write a function file luppgen.mwith A as input, while your output should be the factors LE, UE in the economy (thin) versionof (1) and a permutation vector corresponding to P.(b) Using the factorisation from part (a), derive the LU factorisation method for the least squaresproblem. Write a function file lslusolve.m to implement this method. Your input should beA, b, while your output should be the solution vector x. Your file should contain luppgen.mas a subfunction.Note: You should submit the matlab file for this task only if you are registered on the LM versionof this course (module code 27689), i.e., if you are a Year 4 or MSc student, or you registeredspecifically on the LM version as an exchange or Erasmus student.转自:http://www.3daixie.com/contents/11/3444.html
讲解:Linear Algebra、Canvas、matlab、matlabPython|SQL
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...