|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmathutil.Matrix
public class Matrix
Třída implementuje matici reálných čísel.
Copyright: Copyright (c) 2005 Jan Dolezel
Company: ČVUT FEL, Prague
Field Summary | |
---|---|
private int |
m
|
private double[][] |
matrix
|
private int |
n
|
Constructor Summary | |
---|---|
Matrix()
Prázdná matice 0x0 |
|
Matrix(double[][] matrix)
vytváří matici z dvourozměrného pole reálných čísel |
|
Matrix(int n)
čtvercová matice n x n |
|
Matrix(int width,
int height)
|
|
Matrix(Matrix matrix)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
double |
get(int i,
int j)
vrací prvek pole na pozici i,j |
int |
getHeight()
|
static Matrix |
getIdentity(int n)
Vytváří matici identity n x n - prvky na diagonále jsou 1 |
int |
getWidth()
|
Matrix |
inverse()
vypočte matici inverzní |
Matrix[] |
LUdecomposition()
provede LU dekompozici matice |
Matrix |
mulipleBy(Matrix matrix)
násobení matic - původní matice nechá beze změny |
Vektor |
mulipleBy(Vektor vector)
Násobení matice vektorem. |
void |
reshape(int width,
int height)
ořízne či rozšíří matici na novou velikost |
void |
set(int i,
int j,
double value)
nastaví prvek pole na pozici i,j |
java.lang.String |
toString()
|
Matrix |
transposed()
vrací transponovanou matici |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int n
private int m
private double[][] matrix
Constructor Detail |
---|
public Matrix()
public Matrix(int n)
n
- intpublic Matrix(int width, int height)
public Matrix(Matrix matrix)
public Matrix(double[][] matrix)
matrix
- double[][]Method Detail |
---|
public double get(int i, int j)
i
- int sloupecj
- int řádek
public void set(int i, int j, double value)
i
- int sloupecj
- int řádekvalue
- doublepublic Matrix[] LUdecomposition()
public Matrix inverse()
public Matrix mulipleBy(Matrix matrix)
matrix
- Matrix
public Vektor mulipleBy(Vektor vector)
vector
- Vektor
public java.lang.String toString()
toString
in class java.lang.Object
public Matrix transposed()
public int getWidth()
public int getHeight()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void reshape(int width, int height)
width
- intheight
- intpublic static Matrix getIdentity(int n)
n
- int
|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |