Go to the source code of this file.
int matrix_columns |
( |
Matrix * |
matrix | ) |
|
Get the number of columns of the matrix.
- Parameters
-
- Returns
- the number of columns
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
void matrix_free |
( |
Matrix * |
matrix | ) |
|
Free memory of the matrix.
- Parameters
-
matrix | the matrix pointer itself |
float matrix_get |
( |
Matrix * |
matrix, |
|
|
int |
i, |
|
|
int |
j |
|
) |
| |
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
int matrix_lines |
( |
Matrix * |
matrix | ) |
|
Get the number of lines of the matrix.
- Parameters
-
- Returns
- the number of lines
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) |