September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -5,7 +5,7 @@
typedef struct {
int m, n;
double ** v;
} mat_t, mat;
} mat_t, *mat;
mat matrix_new(int m, int n)
{
@ -37,7 +37,7 @@ void matrix_transpose(mat m)
}
}
mat matrix_copy(int n;double a[][n], int m, int n)
mat matrix_copy(int n, double a[][n], int m)
{
mat x = matrix_new(m, n);
for (int i = 0; i < m; i++)
@ -174,7 +174,7 @@ double in[][3] = {
int main()
{
mat R, Q;
mat x = matrix_copy(in, 5, 3);
mat x = matrix_copy(3, in, 5);
householder(x, &R, &Q);
puts("Q"); matrix_show(Q);