Projection onto subspace given set of LI vectors

asked 2024-06-07 20:49:12 +0200

relma2 gravatar image

I want a subroutine to find the Projection Matrix onto a subspace given a set of linearly independent vectors of that subspace. Suppose I have vectors $v_1, v_2, \dots v_n$ and the Vector space $\text{span}({v_i})$. How do I get the projection matrix onto that span?

edit retag flag offensive close merge delete

Comments

This looks like a homework. I guess you mean orthogonal projection (othewise some information is missing). How would you construct such a matrix mathematically ?

tmonteil gravatar imagetmonteil ( 2024-06-07 21:06:25 +0200 )edit