Data Structures Lerax 1.0.0
Essential Data Structures for C language
Loading...
Searching...
No Matches
matrix.h
Go to the documentation of this file.
1
12
13#ifndef MATRIX_H
14#define MATRIX_H
15
16typedef struct matrix Matrix;
17
24Matrix* matrix_create(int m, int n);
25
26
31void matrix_free(Matrix* matrix);
32
33
41float matrix_get(Matrix *matrix, int i, int j);
42
43
51void matrix_set(Matrix *matrix, int i, int j, float v);
52
53
59int matrix_lines (Matrix *matrix);
60
61
68
69
70#endif
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.
void matrix_free(Matrix *matrix)
Free memory of the matrix.
struct matrix Matrix
Definition matrix.h:16
float matrix_get(Matrix *matrix, int i, int j)
Matrix * matrix_create(int m, int n)
Create a new matrix.
int matrix_columns(Matrix *matrix)
Get the number of columns of the matrix.