|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
ObjectMatrix
ElemMatrix
The class of elementary matrices: permutations, dilations, and translations. All are invertible. In this implementation, they are immutable. Most matrix-ring operations are unsupported because they would produce non-elementary matrices in general.
To save space, we won't require ElemMatrixs to
store their size. In particular, getNumRows() and getNumCols() are unsupported. We expect that
ElemMatrixs will be used together with one particular
"big" m × n matrix. The size of the
ElemMatrixs, m × m or
n × n, can be read from there. We
don't check for size errors.
| Constructor Summary | |
ElemMatrix()
|
|
| Method Summary | |
Matrix |
add(Matrix b)
Unsupported. |
abstract int |
det()
The determinant, as an int ±1. |
int |
getNumCols()
Unsupported. |
int |
getNumRows()
Unsupported. |
boolean |
isProductZero(Matrix b)
Says whether this * b is zero, without storing the
product. |
boolean |
isZero()
Whether every entry in this matrix is zero. |
abstract Matrix |
multOnRight(Matrix b)
Returns b * this. |
void |
set(SparseElt iAndVal,
int j)
Unsupported. |
| Methods inherited from class Matrix |
get, inverse, isIdentity, mult, toString, transpose |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ElemMatrix()
| Method Detail |
public Matrix add(Matrix b)
add in class Matrixpublic abstract int det()
int ±1.
public int getNumCols()
getNumCols in class Matrixpublic int getNumRows()
getNumRows in class Matrixpublic final boolean isProductZero(Matrix b)
Matrixthis * b is zero, without storing the
product. Is not destructive.
isProductZero in class Matrixpublic final boolean isZero()
Matrix
isZero in class Matrixpublic abstract Matrix multOnRight(Matrix b)
b * this. Check the implementation for
whether it's destructive.
Matrix.mult(shh.csparse.Matrix)
public final void set(SparseElt iAndVal,
int j)
set in class Matrix
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||