|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ru.tunegov.mathematic.Matrix
This is a non-visual component that represents matrixes. The given class realizes main operations above matrixes.
| Constructor Summary | |
Matrix()
Contruct a Matrix object. |
|
Matrix(double[][] array)
Contruct a Matrix object. |
|
Matrix(int rows,
int cols)
Contruct a Matrix object. |
|
Matrix(java.lang.String s)
Contruct a Matrix object. |
|
| Method Summary | |
ElementSet |
abs()
Returns the absolute value of an element of a set. |
ElementSet |
add(Complex arg)
Returns the sum of the given element with argument (result = this + arg). |
ElementSet |
add(Decimal arg)
Returns the sum of the given element with argument (result = this + arg). |
ElementSet |
add(double arg)
Returns the sum of the given element with argument (result = this + arg). |
ElementSet |
add(ElementSet arg)
Returns the sum of the given element with argument (result = this + arg). |
MatrixElementSet |
add(MatrixElementSet arg)
Returns the sum of the given element with argument (result = this + arg). |
java.lang.Object |
clone()
Returns clone of this object. |
ElementSet |
cos()
Returns the cosine of given element. |
ElementSet |
divide(Complex arg)
Returns the quotient of the given element with argument (result = this / arg). |
ElementSet |
divide(Decimal arg)
Returns the quotient of the given element with argument (result = this / arg). |
ElementSet |
divide(double arg)
Returns the quotient of the given element with argument (result = this / arg). |
ElementSet |
divide(ElementSet arg)
Returns the quotient of the given element with argument (result = this / arg). |
MatrixElementSet |
divide(MatrixElementSet arg)
Returns the quotient of the given element with argument (result = this / arg). |
ElementSet |
divideInverse(Complex arg)
Returns the quotient of the argument with given element (result = arg / this). |
ElementSet |
divideInverse(Decimal arg)
Returns the quotient of the argument with given element (result = arg / this). |
ElementSet |
divideInverse(double arg)
Returns the quotient of the argument with given element (result = arg / this). |
MatrixElementSet |
divideInverse(MatrixElementSet arg)
Returns the quotient of the argument with given element (result = arg / this). |
boolean |
equals(java.lang.Object obj)
Compares two Objects for equality. |
ElementSet |
exp()
Returns the exponential function raised in a degree equal to the given element. |
int |
getCols()
Returns the number of columns in the matrix. |
ElementSet |
getItem(int row,
int col)
Returns thevalue of the cell in matrix. |
ElementSet[][] |
getItems()
Returns the array of values of the matrix. |
int |
getRows()
Returns the number of rows in the matrix. |
ElementSet |
inverse()
Returns the inverse value of the given element. |
ElementSet |
log()
Returns the logarithm of given element. |
ElementSet |
multiply(Complex arg)
Returns the product of the given element with argument (result = this * arg). |
ElementSet |
multiply(Decimal arg)
Returns the product of the given element with argument (result = this * arg). |
ElementSet |
multiply(double arg)
Returns the product of the given element with argument (result = this * arg). |
ElementSet |
multiply(ElementSet arg)
Returns the product of the given element with argument (result = this * arg). |
MatrixElementSet |
multiply(MatrixElementSet arg)
Returns the product of the given element with argument (result = this * arg). |
ElementSet |
negate()
Returns the element negative given. |
ElementSet |
norm()
Returns the k norm of given element. |
ElementSet |
pow(double degree)
Returns the given element raised to n-th degree. |
ElementSet |
root(int degree)
Returns the root of n-th degree of given element. |
void |
setItem(int row,
int col,
ElementSet value)
Sets the value of the cell in matrix. |
void |
setItems(ElementSet[][] value)
Sets the array of values of the matrix. |
ElementSet |
sin()
Returns the sine of given element. |
ElementSet |
sqrt()
Returns the square root of given element. |
ElementSet |
subtract(Complex arg)
Returns the difference of the given element with argument (result = this - arg). |
ElementSet |
subtract(Decimal arg)
Returns the difference of the given element with argument (result = this - arg). |
ElementSet |
subtract(double arg)
Returns the difference of the given element with argument (result = this - arg). |
ElementSet |
subtract(ElementSet arg)
Returns the difference of the given element with argument (result = this - arg). |
MatrixElementSet |
subtract(MatrixElementSet arg)
Returns the difference of the given element with argument (result = this - arg). |
ElementSet |
subtractInverse(Complex arg)
Returns the difference of the argument with given element (result = arg - this). |
ElementSet |
subtractInverse(Decimal arg)
Returns the difference of the argument with given element (result = arg - this). |
ElementSet |
subtractInverse(double arg)
Returns the difference of the argument with given element (result = arg - this). |
MatrixElementSet |
subtractInverse(MatrixElementSet arg)
Returns the difference of the argument with given element (result = arg - this). |
ElementSet |
tan()
Returns the tangent of given element. |
java.lang.String |
toFormattedString(java.text.DecimalFormat df)
Returns formatted string representing the given element. |
java.lang.String |
toString()
Returns a String that represents the value of this object. |
MatrixElementSet |
transpose()
Returns the transpose matrix. |
| Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Matrix()
public Matrix(double[][] array)
array - The matrix cells values
public Matrix(int rows,
int cols)
rows - The number of rows in the matrixrows - The number of columns in the matrixpublic Matrix(java.lang.String s)
s - The string representation of the matrix| Method Detail |
public ElementSet abs()
public ElementSet add(double arg)
arg - The second argumentpublic ElementSet add(Complex arg)
arg - The second argumentpublic ElementSet add(Decimal arg)
arg - The second argumentpublic ElementSet add(ElementSet arg)
arg - The second argumentpublic MatrixElementSet add(MatrixElementSet arg)
arg - The second argumentpublic java.lang.Object clone()
public ElementSet cos()
public ElementSet divide(double arg)
arg - The second argumentpublic ElementSet divide(Complex arg)
arg - The second argumentpublic ElementSet divide(Decimal arg)
arg - The second argumentpublic ElementSet divide(ElementSet arg)
arg - The second argumentpublic MatrixElementSet divide(MatrixElementSet arg)
arg - The second argumentpublic ElementSet divideInverse(double arg)
arg - The first argumentpublic ElementSet divideInverse(Complex arg)
arg - The first argumentpublic ElementSet divideInverse(Decimal arg)
arg - The first argumentpublic MatrixElementSet divideInverse(MatrixElementSet arg)
arg - The first argumentpublic boolean equals(java.lang.Object obj)
obj - The reference object with which to comparepublic ElementSet exp()
public int getCols()
public ElementSet getItem(int row,
int col)
row - The row in matrixcol - The column in matrixpublic ElementSet[][] getItems()
public int getRows()
public ElementSet inverse()
public ElementSet log()
public ElementSet multiply(double arg)
arg - The second argumentpublic ElementSet multiply(Complex arg)
arg - The second argumentpublic ElementSet multiply(Decimal arg)
arg - The second argumentpublic ElementSet multiply(ElementSet arg)
arg - The second argumentpublic MatrixElementSet multiply(MatrixElementSet arg)
arg - The second argumentpublic ElementSet negate()
public ElementSet norm()
public ElementSet pow(double degree)
degree - The degree of powerpublic ElementSet root(int degree)
degree - The degree of root
public void setItem(int row,
int col,
ElementSet value)
row - The row in matrixcol - The column in matrixvalue - The value of the cellpublic void setItems(ElementSet[][] value)
value - The array of values of the matrixpublic ElementSet sin()
public ElementSet sqrt()
public ElementSet subtract(double arg)
arg - The second argumentpublic ElementSet subtract(Complex arg)
arg - The second argumentpublic ElementSet subtract(Decimal arg)
arg - The second argumentpublic ElementSet subtract(ElementSet arg)
arg - The second argumentpublic MatrixElementSet subtract(MatrixElementSet arg)
arg - The second argumentpublic ElementSet subtractInverse(double arg)
arg - The first argumentpublic ElementSet subtractInverse(Complex arg)
arg - The first argumentpublic ElementSet subtractInverse(Decimal arg)
arg - The first argumentpublic MatrixElementSet subtractInverse(MatrixElementSet arg)
arg - The first argumentpublic ElementSet tan()
public java.lang.String toFormattedString(java.text.DecimalFormat df)
df - Formatterpublic java.lang.String toString()
public MatrixElementSet transpose()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||