Class MatriceCarre
- java.lang.Object
-
- MatriceCarre
-
public class MatriceCarre extends java.lang.Object
Une classe definissant une matrice carree
-
-
Constructor Summary
Constructors Constructor Description MatriceCarre(int t)
Constructeur creant une matrice videMatriceCarre(MatriceCarre a)
Constructeur copiant une matrice donnee dans une nouvelle matrice
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(MatriceCarre a)
int
getCoeff(int i, int j)
Methode permettant de recuperer le coefficient d'une matricevoid
setCoeff(int i, int j, int val)
Methode permettant de definir le coefficient d'une matricejava.lang.String
toString()
-
-
-
Constructor Detail
-
MatriceCarre
public MatriceCarre(int t)
Constructeur creant une matrice vide- Parameters:
t
- La taille de la matrice
-
MatriceCarre
public MatriceCarre(MatriceCarre a)
Constructeur copiant une matrice donnee dans une nouvelle matrice- Parameters:
a
- La matrice à copier
-
-
Method Detail
-
setCoeff
public void setCoeff(int i, int j, int val)
Methode permettant de definir le coefficient d'une matrice- Parameters:
i
- Le coefficient de lignej
- Le coefficient de colonneval
- La valeur du coefficient
-
getCoeff
public int getCoeff(int i, int j)
Methode permettant de recuperer le coefficient d'une matrice- Parameters:
i
- Le coefficient de lignej
- Le coefficient de colonne- Returns:
- Le coefficient
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(MatriceCarre a)
-
-