This commit is contained in:
Elizabeth Hunt 2023-10-13 09:58:25 -06:00
parent add2520e49
commit 0ce79392c3
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
2 changed files with 56 additions and 58 deletions

Binary file not shown.

View File

@ -62,15 +62,13 @@ int main() {
printf("least_squares_lin_reg(v, w): (%f)x + %f\n", line->m, line->a);
printf("========\n");
printf("LU Decomp\n");
char m_s[2048];
Matrix_double *m = InitMatrixWithSize(double, 8, 8, 0.0);
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
for (int j = 0; j < 8; j++)
m->data[i]->data[j] = (i + 1.0) + j * 3 + (rand() % 12);
}
}
format_matrix_into(m, m_s);
printf("m = %s", m_s);