Go to the source code of this file.
◆ Matrix
◆ matrix_columns()
int matrix_columns |
( |
Matrix * | matrix | ) |
|
Get the number of columns of the matrix.
- Parameters
-
- Returns
- the number of columns
◆ matrix_create()
Matrix * matrix_create |
( |
int | m, |
|
|
int | n ) |
Create a new matrix.
- Parameters
-
m | means number of lines |
n | means number of columns |
- Returns
- the address of the created matrix
◆ matrix_free()
void matrix_free |
( |
Matrix * | matrix | ) |
|
Free memory of the matrix.
- Parameters
-
matrix | the matrix pointer itself |
◆ matrix_get()
float matrix_get |
( |
Matrix * | matrix, |
|
|
int | i, |
|
|
int | j ) |
@brieaf Get a value on position (i,j) of the matrix
- Parameters
-
the | matrix pointer |
i | the line index |
j | the column index |
- Returns
- the value on (i,j) as float
◆ matrix_lines()
int matrix_lines |
( |
Matrix * | matrix | ) |
|
Get the number of lines of the matrix.
- Parameters
-
- Returns
- the number of lines
◆ matrix_set()
void matrix_set |
( |
Matrix * | matrix, |
|
|
int | i, |
|
|
int | j, |
|
|
float | v ) |
Set a value on position(i,j) of the matrix.
- Parameters
-
matrix | the matrix pointer |
i | the line index |
j | the column index |
v | the value the set on (i,j) |