#include <stdio.h>
#include <stdlib.h>
#include "numbers.h"
#include "matrix.h"
Include dependency graph for matrix.c:

Go to the source code of this file.
Functions | |
| number | addMatrix (const number x, const number y) |
| number | multMatrix (const number x, const number y) |
| number | getUnitMatrix (const number x) |
| number | getZeroMatrix (const number x) |
| void | displayMatrix (const number x) |
| int | howManyMatrices () |
| void | freeMatrix (number *p) |
| void | freeAllMatricesExcept (number p) |
| void | freeAllMatrices (void) |
| number | getMatrix (int n, number p) |
| number | getComponent (number a, int i, int j) |
| number | setComponent (number a, int i, int j, number x) |
Definition in file matrix.c.
|
||||||||||||
|
Addition pour les matrices
Definition at line 168 of file matrix.c. References add(), getComponent(), getMatrix(), MATRIX, value_type::matval, number, Matrix::prototype, setComponent(), Matrix::size, NB::type, and NB::val. |
|
|
Affiche la matrice x
Definition at line 228 of file matrix.c. References display(), getComponent(), value_type::matval, number, Matrix::size, NB::type, and NB::val. Referenced by getMatrix(). |
|
|
Liberation de matrices Libere toutes les matrices allouees par getMatrix, directement par l'utilisateur ou en interne |
|
|
Liberation de matrices
Definition at line 115 of file matrix.c. References number. |
|
|
Liberation de matrice
Definition at line 111 of file matrix.c. References number. |
|
||||||||||||||||
|
Accesseur en lecture des elements
Definition at line 142 of file matrix.c. References value_type::matval, number, Matrix::prototype, Matrix::size, Matrix::tab, NB::type, and NB::val. Referenced by addMatrix(), displayMatrix(), and multMatrix(). |
|
||||||||||||
|
Constructeur de matrice
Definition at line 130 of file matrix.c. References displayMatrix(), value_type::matval, number, and NB::val. Referenced by addMatrix(), getUnitMatrix(), getZeroMatrix(), and multMatrix(). |
|
|
Element neutre multiplicatif : Id
Definition at line 204 of file matrix.c. References display(), getMatrix(), getUnit(), value_type::matval, number, Matrix::prototype, setComponent(), Matrix::size, NB::type, and NB::val. |
|
|
Element neutre additif : 0
Definition at line 218 of file matrix.c. References getMatrix(), value_type::matval, number, Matrix::prototype, Matrix::size, NB::type, and NB::val. |
|
|
Nombre de matrices allouees
|
|
||||||||||||
|
Multiplication pour les matrices
Definition at line 184 of file matrix.c. References add(), getComponent(), getMatrix(), getZero(), MATRIX, value_type::matval, mult(), number, Matrix::prototype, setComponent(), Matrix::size, NB::type, and NB::val. |
|
||||||||||||||||||||
|
Accesseur en ecriture des elements
Definition at line 155 of file matrix.c. References value_type::matval, number, Matrix::prototype, Matrix::size, Matrix::tab, NB::type, and NB::val. Referenced by addMatrix(), getUnitMatrix(), and multMatrix(). |
1.3.9.1