QR decomposition: Difference between revisions
Content added Content deleted
(C# solution) |
(→{{header|C}}: fixing several typo which prevent the code to build) |
||
Line 413: | Line 413: | ||
int m, n; |
int m, n; |
||
double ** v; |
double ** v; |
||
} mat_t, mat; |
} mat_t, *mat; |
||
mat matrix_new(int m, int n) |
mat matrix_new(int m, int n) |
||
Line 445: | Line 445: | ||
} |
} |
||
mat matrix_copy(int n |
mat matrix_copy(int n, double a[][n], int m) |
||
{ |
{ |
||
mat x = matrix_new(m, n); |
mat x = matrix_new(m, n); |
||
Line 582: | Line 582: | ||
{ |
{ |
||
mat R, Q; |
mat R, Q; |
||
mat x = matrix_copy( |
mat x = matrix_copy(5, in, 3); |
||
householder(x, &R, &Q); |
householder(x, &R, &Q); |
||