|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecticar.util.MatriceCarre
Cette classe permet la manipulation de matrices carrées, notemment, pour obtenir des matrices inversées.
Constructor Summary | |
MatriceCarre(double[][] tableau)
Creation d'une matrice à partir d'un tableau de données. |
|
MatriceCarre(int taille)
Creation d'une matrice vide. |
|
MatriceCarre(MatriceCarre m)
Creation d'une matrice à partir d'une autre matrice |
Method Summary | |
double |
get(int x,
int y)
Renvoie la valeur d'une case |
static MatriceCarre |
getIdentite(int taille)
Creation d'une matrice identité |
MatriceCarre |
inverse()
Renvoie l'inverse de la matrice par la methode du pivot de gauss |
void |
set(int x,
int y,
double valeur)
Affecte une valeur à une case de la matrice |
java.lang.String |
toString()
Renvoie une représentation visuelle de la matrice |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MatriceCarre(int taille)
taille
- la taille de la matrice carrepublic MatriceCarre(double[][] tableau) throws java.lang.Exception
tableau
- un tableau à 2 dimensions contenant les données
à charger dans la matrice
java.lang.Exception
- si le paramètre n'est pas un tableau carrépublic MatriceCarre(MatriceCarre m)
m
- la matrice à copierMethod Detail |
public static MatriceCarre getIdentite(int taille)
taille
- la taille de la matrice
public void set(int x, int y, double valeur) throws java.lang.Exception
x
- (0, taille-1)y
- (0, taille-1)valeur
- la nouvelle valeur
java.lang.Exception
- si les indices sont hors bornespublic double get(int x, int y) throws java.lang.Exception
x
- (0, taille-1)y
- (0, taille-1)
java.lang.Exception
- si les indices sont hors bornespublic MatriceCarre inverse() throws java.lang.Exception
java.lang.Exception
- si la matrice n'est pas inversiblepublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |