diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-10-11 14:09:59 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-10-11 14:09:59 -0600 |
commit | faaef032d866f956665653e58086af9872c3c093 (patch) | |
tree | a3eb7311af47755c8ad50e7d8e0af4d892c5c200 /test/main.c | |
parent | 1ce75ab5fe461ddd3823403754f5b4c543016abc (diff) | |
download | cmath-faaef032d866f956665653e58086af9872c3c093.tar.gz cmath-faaef032d866f956665653e58086af9872c3c093.zip |
matrices
Diffstat (limited to 'test/main.c')
-rw-r--r-- | test/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/main.c b/test/main.c index b0faf97..798bfbf 100644 --- a/test/main.c +++ b/test/main.c @@ -50,5 +50,11 @@ int main() { line = least_squares_lin_reg(v, w); printf("least_squares_lin_reg(v, w): (%f)x + %f\n", line->m, line->a); + char m_s[256]; + Matrix_double *m = InitMatrixWithSize(double, 8, 8, 0.0); + put_identity_diagonal(m); + format_matrix_into(m, m_s); + printf("%s", m_s); + return 0; } |