Some of the Matrix stuff
This commit is contained in:
parent
49a821042f
commit
3e17ed3bcf
2 changed files with 92 additions and 0 deletions
15
matrix.h
Normal file
15
matrix.h
Normal 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);
|
||||
|
||||
|
||||
|
||||
Reference in a new issue