Data Structures Lerax  v3.0-102-gaf18
Opinionated Data Structures & Algorithms
Loading...
Searching...
No Matches
matrix.h
Go to the documentation of this file.
1
12
13#ifndef MATRIX_H
14#define MATRIX_H
15
21typedef struct matrix Matrix;
22
30Matrix* matrix_create(int m, int n);
31
32
38void matrix_free(Matrix* matrix);
39
40
49float matrix_get(Matrix *matrix, int i, int j);
50
51
60void matrix_set(Matrix *matrix, int i, int j, float v);
61
62
69int matrix_lines (Matrix *matrix);
70
71
79
80
81#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.
float matrix_get(Matrix *matrix, int i, int j)
Get a value on position (i,j) of the matrix.
Matrix * matrix_create(int m, int n)
Create a new matrix.
int matrix_columns(Matrix *matrix)
Get the number of columns of the matrix.
struct matrix Matrix
A 2D matrix of floating-point numbers.
Definition matrix.h:21