# How to get Q and R in QR decomposition ?

Hi there,

I have to use QR decomposition to get q and r matrix.I find that solve() function can solve QR decomposition problem. However, I cannot get the q and r matrix in this function as getting some matrix in SVD. Is there any way to get the q and r? It seems a old problem but i cannot find the solution on the internet.

well, I find some code here

http://suzuichibolgpg.blog.fc2.com/bl...