|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectapplicationlayer.linearalgebra.AbstractMatrix
applicationlayer.linearalgebra.CMatrix
public class CMatrix
Matice s prvky typu CFloat.
| Field Summary |
|---|
| Fields inherited from class applicationlayer.linearalgebra.AbstractMatrix |
|---|
column, CRAMERS_RULE, GAUSS_ELIMINATION, GAUSS_JORDAN, GAUSS_PARTIAL_PIVOT, INVERSION, precision, row |
| Constructor Summary | |
|---|---|
CMatrix(AbstractMatrix matrix)
Vytvoří kopie z dané matice. |
|
CMatrix(CFloat[][] data)
Vytvoří novou matici s danými prvky. |
|
CMatrix(int row,
int column)
Vytvoří prázdnou matici velikosti row×column. |
|
CMatrix(java.lang.String matrix)
Vytvoří matici z textového řetězce. |
|
| Method Summary | |
|---|---|
AbstractMatrix |
add(AbstractMatrix operand)
Vrací součet dvou matic (this + operand) |
java.lang.Object |
cond()
Vrací číslo podmíněnosti této matice. |
AbstractMatrix |
cramersRule(AbstractMatrix a,
AbstractMatrix b)
Řeší soustavu rovnic s cramerovým pravidem. |
java.lang.Object |
determinant()
Vrácí determinant této matice. |
CFloat |
determinantSarrus()
Vrací determinant této matice pomocí Sarrusovovým pravidlem |
AbstractMatrix |
gaussElimination()
Vrací tuto matici upravenou Gaussovou eliminací. |
AbstractMatrix |
gaussJordan()
Vrací tuto matici upravenou Gauss-Jordanovou eliminací. |
AbstractMatrix |
gaussPartial()
Vrací tuto matici upravenou Gaussovou eliminací s parciální pivotací. |
static CMatrix |
identityMatrix(int row)
Vrací jednotkovou matici velikosti row×row. |
AbstractMatrix |
inverse()
Vrácí inverzní matici - metoda Gaussova eliminační |
AbstractMatrix |
joinMatrix(AbstractMatrix operand)
Vrací matici ( this + operand). |
AbstractMatrix |
multiply(AbstractMatrix operand)
Vrací součin dvou matic (this * operand) |
java.lang.Object |
normCol()
Sloupcová norma. |
java.lang.Object |
normRow()
Řádková norma. |
static CMatrix |
oneMatrix(int row,
int column)
Vrací jedničkovou matici velikosti row×column. |
static void |
setPrecision(int precision)
Nastaví přesnost prvků matice. |
AbstractMatrix |
solve(AbstractMatrix a,
AbstractMatrix b,
int method)
Řeší soustavu rovnic s danou metodou. |
AbstractMatrix |
subtract(AbstractMatrix operand)
Vrací rozdíl dvou matic (this - operand). |
protected void |
swap(int index1,
int index2)
Prohodí dva řádky. |
java.lang.String |
toString()
Vrácí řetězcovou reprezentaci této matice |
AbstractMatrix |
transpose()
Vrací transpanovanou matici. |
static CMatrix |
zeroMatrix(int row,
int column)
Vrací nulovou matici velikosti row×column. |
| Methods inherited from class applicationlayer.linearalgebra.AbstractMatrix |
|---|
getColumn, getRow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CMatrix(java.lang.String matrix)
matrix - textový řetězec reprezentující prvky matice.public CMatrix(CFloat[][] data)
data - pole CFloat, která obsahuje prvky matice.
public CMatrix(int row,
int column)
row×column.
row - počet řádkůcolumn - počet sloupcůpublic CMatrix(AbstractMatrix matrix)
matrix - instance, ze které má být vytvořena kopie| Method Detail |
|---|
public static CMatrix identityMatrix(int row)
row×row.
row - počet sloupců a rádků
public static CMatrix oneMatrix(int row,
int column)
row×column.
row - počet řádkůcolumn - počet sloupců
public static CMatrix zeroMatrix(int row,
int column)
row×column.
row - počet řádkůcolumn - počet sloupců
protected void swap(int index1,
int index2)
index1 - první řádekindex2 - druhý řádekpublic AbstractMatrix joinMatrix(AbstractMatrix operand)
AbstractMatrixthis + operand).
joinMatrix in class AbstractMatrixoperand - matice, která má být spojena k této matici
public AbstractMatrix add(AbstractMatrix operand)
AbstractMatrix
add in class AbstractMatrixoperand - matice, která má být přičtena k této matici
public AbstractMatrix subtract(AbstractMatrix operand)
AbstractMatrix
subtract in class AbstractMatrixoperand - matice, která má být odečtena od této matici
public AbstractMatrix multiply(AbstractMatrix operand)
AbstractMatrix
multiply in class AbstractMatrixoperand - matice, která má být násobena touto maticí
public java.lang.Object cond()
AbstractMatrix
cond in class AbstractMatrixpublic java.lang.Object normCol()
AbstractMatrix
normCol in class AbstractMatrixpublic java.lang.Object normRow()
AbstractMatrix
normRow in class AbstractMatrixpublic java.lang.Object determinant()
AbstractMatrix
determinant in class AbstractMatrixpublic AbstractMatrix inverse()
AbstractMatrix
inverse in class AbstractMatrixpublic AbstractMatrix transpose()
AbstractMatrix
transpose in class AbstractMatrixpublic CFloat determinantSarrus()
public AbstractMatrix gaussJordan()
AbstractMatrix
gaussJordan in class AbstractMatrixthis)public AbstractMatrix gaussPartial()
AbstractMatrix
gaussPartial in class AbstractMatrixthis)public AbstractMatrix gaussElimination()
AbstractMatrix
gaussElimination in class AbstractMatrixthis)
public AbstractMatrix cramersRule(AbstractMatrix a,
AbstractMatrix b)
AbstractMatrix
cramersRule in class AbstractMatrixa - matice soustavyb - pravá strana soustavy
public AbstractMatrix solve(AbstractMatrix a,
AbstractMatrix b,
int method)
AbstractMatrix
solve in class AbstractMatrixa - matice soustavyb - pravá strana soustavymethod - metoda, která má být použita při výpočtu řešení soustavy rovnic.
public static void setPrecision(int precision)
precision - nová přesnost, která má být nastavenapublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||