|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.ObjectSquareRootMatrix
class SquareRootMatrix
This class introduces matrices of square roots of fractions (SquareRootFraction or SRF). It also features basic necessary operations with them.
| Constructor Summary | |
|---|---|
SquareRootMatrix()
Constructs a null matrix of dimension 0. |
|
SquareRootMatrix(Fraction[] M,
int r,
int c)
Constructs a matrix from a field of Fractions. |
|
SquareRootMatrix(int r,
int c)
Constructs a zero matrix of given dimensions. |
|
| Method Summary | |
|---|---|
(package private) void |
copy(SquareRootMatrix I)
Copies another matrix onto this matrix. |
(package private) SquareRootFraction |
get(int r,
int c)
The getter of this class - returns the value of a given element ar,c. |
(package private) int |
getC()
Number of columns of this Matrix. |
(package private) double[] |
getCharPolyCoeffs()
Calculates coefficients of characteristic polynome of the matrix. |
(package private) int |
getR()
Number of rows of this Matrix. |
(package private) void |
set(SquareRootFraction F,
int r,
int c)
The setter of this class - sets given element ar,c to a given value. |
(package private) Jama.Matrix |
toRealMatrix()
Converts all elements to real numbers. |
(package private) String |
toTeX()
Prints this matrix formatted as TeX code. |
(package private) String |
toText()
Prints this matrix formatted as text. |
| Methods inherited from class |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SquareRootMatrix()
SquareRootMatrix(Fraction[] M,
int r,
int c)
Fractions. The Fractions will be converted to SquareRootFractions without changing their
value (ie. the root will not be extracted).
M - field of Fractions, containing the matrix's elementsr - number of matrix's rowsc - number of matrix's columns
SquareRootMatrix(int r,
int c)
r - number of matrix's rowsc - number of matrix's columns| Method Detail |
|---|
void copy(SquareRootMatrix I)
=.
I - the image matrix
SquareRootFraction get(int r,
int c)
r - the row index of the desired elementc - the column index of the desired element
SquareRootFraction) of the element on the rth row and the cth column
IndexOutOfBoundsException - Throws an exception if the row index isn't of <1,number of rows>.
IndexOutOfBoundsException - Throws an exception if the column index isn't of <1,number of columns>.int getC()
double[] getCharPolyCoeffs()
int getR()
void set(SquareRootFraction F,
int r,
int c)
F - the desired value (a SquareRootFraction) of the element on the rth row and the cth columnr - the row index of the desired elementc - the column index of the desired element
IndexOutOfBoundsException - Throws an exception if the row index isn't of <1,number of rows>.
IndexOutOfBoundsException - Throws an exception if the column index isn't of <1,number of columns>.Jama.Matrix toRealMatrix()
double) instead SquareRootFractionsString toTeX()
String toText()
( and end with ).
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||