|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Matrix
| Nested Class Summary | |
|---|---|
static class |
Matrix.SingularMatrixException
|
| Method Summary | |
|---|---|
Matrix |
add(Matrix M)
|
Matrix |
addIP(Matrix M)
|
Matrix |
appendRight(Matrix M)
Create a new matrix which contains the original matrix A and the argument B side by side, as [A B]. |
Range |
cols()
|
boolean |
equals(Object o)
|
Matrix |
fill(int top,
int left,
Matrix M)
Fill the matrix with the entries from M, starting at the (top, left) entry. |
double |
get(int i,
int j)
|
double[] |
getCol(int j)
Return a double array containing the matrix's jth column. |
double[] |
getRow(int i)
Return a double array containing the matrix's ith row. |
Matrix |
inverse()
|
boolean |
isIdentity()
|
boolean |
isZero()
|
Matrix |
leftDivide(Matrix M)
Matrix left-division: equal to A^(-1)*M. |
Matrix |
multiply(double c)
|
Matrix |
multiply(Matrix M)
Returns the product of this matrix with M. |
Matrix |
multiplyIP(double c)
|
int |
numCols()
|
int |
numRows()
|
Matrix |
ref()
Use Gaussian elimination to put the matrix in row echelon form. |
Range |
rows()
|
Matrix |
rref()
Puts this matrix in reduced row echelon form using Gauss-Jordan elimination. |
void |
set(int i,
int j,
double val)
|
void |
setCol(int j,
double[] col)
Sets the jth column of the matrix equal to col. |
Matrix |
setDiag(double value)
Set all the diagonal entries of the matrix equal to value. |
void |
setRow(int i,
double[] row)
Sets the ith row of the matrix equal to row. |
Matrix |
submatrix(int top,
int left)
|
Matrix |
submatrix(int top,
int left,
int rows,
int cols)
|
Matrix |
subtract(Matrix M)
|
Matrix |
subtractIP(Matrix M)
|
Matrix |
transpose()
|
| Methods inherited from interface java.util.Collection |
|---|
add, addAll, clear, contains, containsAll, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Method Detail |
|---|
int numRows()
int numCols()
Range rows()
Range cols()
double get(int i,
int j)
void set(int i,
int j,
double val)
Matrix setDiag(double value)
value -
boolean isZero()
boolean isIdentity()
boolean equals(Object o)
equals in interface Collection<Double>equals in class ObjectMatrix multiply(Matrix M)
M -
Matrix add(Matrix M)
Matrix subtract(Matrix M)
Matrix multiply(double c)
Matrix addIP(Matrix M)
Matrix subtractIP(Matrix M)
Matrix multiplyIP(double c)
Matrix submatrix(int top,
int left)
Matrix submatrix(int top,
int left,
int rows,
int cols)
Matrix appendRight(Matrix M)
M -
Matrix inverse()
throws Matrix.SingularMatrixException
Matrix.SingularMatrixException
Matrix leftDivide(Matrix M)
throws Matrix.SingularMatrixException
Matrix.SingularMatrixExceptionMatrix rref()
Matrix ref()
double[] getRow(int i)
i -
double[] getCol(int j)
j -
void setRow(int i,
double[] row)
i - row -
void setCol(int j,
double[] col)
j - col - Matrix transpose()
Matrix fill(int top,
int left,
Matrix M)
top - left - M -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||