Some of the Matrix stuff

This commit is contained in:
Thomas Schleicher 2023-09-16 13:53:48 +02:00
parent 49a821042f
commit 3e17ed3bcf
2 changed files with 92 additions and 0 deletions

15
matrix.h Normal file
View file

@ -0,0 +1,15 @@
#pragma once
typedef struct {
int rows, columns;
double **numbers;
} Matrix;
Matrix* matrix_create(int rows, int columns);
void matrix_fill(Matrix* matrix, double value);
void matrix_free(Matrix* matrix);
void matrix_print(Matrix *matrix);
Matrix* matrix_copy(Matrix *matrix);