Data Structures UFC  1.0.0
Essential Data Structures for C language
matrix.h
Go to the documentation of this file.
1 
13 #ifndef MATRIX_H
14 #define MATRIX_H
15 
16 typedef struct matrix Matrix;
17 
24 Matrix* matrix_create(int m, int n);
25 
26 
31 void matrix_free(Matrix* matrix);
32 
33 
41 float matrix_get(Matrix *matrix, int i, int j);
42 
43 
51 void matrix_set(Matrix *matrix, int i, int j, float v);
52 
53 
59 int matrix_lines (Matrix *matrix);
60 
61 
67 int matrix_columns(Matrix *matrix);
68 
69 
70 #endif
struct matrix Matrix
Definition: matrix.h:16
void matrix_free(Matrix *matrix)
Free memory of the matrix.
Matrix * matrix_create(int m, int n)
Create a new matrix.
void matrix_set(Matrix *matrix, int i, int j, float v)
Set a value on position(i,j) of the matrix.
int matrix_lines(Matrix *matrix)
Get the number of lines of the matrix.
float matrix_get(Matrix *matrix, int i, int j)
int matrix_columns(Matrix *matrix)
Get the number of columns of the matrix.