|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--praktikum.matrix.Matrix
Die Klasse Matrix implementiert eine Matrix
Field Summary | |
static DecimalFormat |
number
|
Constructor Summary | |
protected |
Matrix()
Konstruiert eine Matrix ohne Einträge. |
|
Matrix(int n,
int m)
Konstruiert eine Matrix. |
Method Summary | |
int |
columns()
Anzahl der Spalten der Matrix. |
Matrix |
copy()
Legt eine Kopie der Matrix an. |
void |
copy(Matrix A)
Kopiert die übergebene Matrix |
double[] |
entries()
Übergibt Einträge der Matrix |
double |
get(int i,
int j)
Liefert den Eintrag in Zeile i und Spalte j. |
String |
latex()
Liefert eine Latex-Darstellung der Matrix. |
void |
newEntries(int n,
int m)
Weist der Matrix neuen Speicher für n Zeilen und m Spalten zu. |
void |
newEntries(int n,
int m,
double[] entry)
Weist der Matrix bereits existierenden Speicher für n Zeilen und m Spalten zu. |
int |
rows()
Anzahl der Zeilen der Matrix |
void |
set(int i,
int j,
double x)
Setzt den Eintrag in Zeile i und Spalte j. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static DecimalFormat number
Constructor Detail |
protected Matrix()
public Matrix(int n, int m)
n
- Anzahl der Zeilenm
- Anzahl der SpaltenMethod Detail |
public int rows()
public int columns()
public double[] entries()
public void newEntries(int n, int m)
n
- Anzahl der Zeilenm
- Anzahl der Spaltenpublic void newEntries(int n, int m, double[] entry) throws IllegalStructureException
n
- Anzahl der Zeilenm
- Anzahl der Spaltenpublic Matrix copy()
public void copy(Matrix A)
Matrix
- public double get(int i, int j)
i
- Zeilej
- Spaltepublic void set(int i, int j, double x)
i
- Zeilej
- Spaltex
- Wertpublic String toString()
toString
in class Object
public String latex() throws IllegalLatexRepresentationException
IllegalLatexRepresentationException
- falls Latex-Darstellung ungültig
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |