|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.math.matrix.Matrix
public abstract class Matrix
Abstract base class for matrixes. Contains only some common methods that are independent of the underlying ring.
Method Summary | |
---|---|
int |
compareTo(Matrix object)
Compares this matrix to object . |
abstract boolean |
equals(java.lang.Object object)
|
int |
getColumnCount()
Returns the number of columns of this matrix. |
int |
getRowCount()
Returns the number of rows of this matrix. |
abstract boolean |
isConstant()
Returns true iff the coefficients of this matrix are equal to a constant value. |
abstract boolean |
isOne(int row,
int col)
Returns true iff the coefficient at row ,col is one. |
abstract boolean |
isRegular()
Returns true iff this matrix is regular. |
boolean |
isSquare()
Returns true iff this is a square matrix. |
abstract boolean |
isUnit()
Returns true iff this is a unit matrix. |
abstract boolean |
isZero()
Returns true iff this is a zero matrix. |
abstract boolean |
isZero(int row,
int col)
Returns true iff the coefficient at row ,col is zero. |
boolean |
isZeroColumn(int c)
Returns true iff column c is zero. |
boolean |
isZeroRow(int r)
Returns true iff row r is zero. |
boolean |
productPossible(Matrix m)
Returns true iff the product of this matrix and m is possible. |
static boolean |
productPossible(Matrix m1,
Matrix m2)
Returns true iff the product of m1 and m2 is possible. |
abstract int |
rank()
Returns the rank of this matrix. |
boolean |
sameSize(Matrix m)
Returns true iff this matrix and m have the same size. |
static boolean |
sameSize(Matrix m1,
Matrix m2)
Returns true iff m1 and m2 have the same size. |
abstract void |
setColumnCount(int cols)
Resizes this matrix by changing the number of columns. |
abstract void |
setRowCount(int rows)
Resizes this matrix by changing the number of rows. |
abstract void |
setToOne(int row,
int col)
Sets the coefficient at row ,col to one. |
abstract void |
setToUnitMatrix()
Makes this matrix unit square. |
abstract void |
setToZero(int row,
int col)
Sets the coefficient at row ,col to zero. |
abstract void |
setToZeroMatrix()
Sets all coefficients to zero. |
abstract java.lang.String |
toString()
Returns a string representation of this matrix. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public final int getRowCount()
public abstract void setRowCount(int rows)
public final int getColumnCount()
public abstract void setColumnCount(int cols)
public abstract void setToZeroMatrix()
public abstract void setToZero(int row, int col)
row
,col
to zero.
public abstract void setToOne(int row, int col)
row
,col
to one.
public abstract void setToUnitMatrix()
public abstract int rank()
public abstract boolean isConstant()
public abstract boolean isZero()
public abstract boolean isUnit()
public final boolean isSquare()
public abstract boolean isRegular()
public abstract boolean isZero(int row, int col)
row
,col
is zero.
public abstract boolean isOne(int row, int col)
row
,col
is one.
public boolean isZeroRow(int r)
r
is zero.
public boolean isZeroColumn(int c)
c
is zero.
public final boolean sameSize(Matrix m)
m
have the same size.
public static final boolean sameSize(Matrix m1, Matrix m2)
m1
and m2
have the same size.
public final boolean productPossible(Matrix m)
m
is possible.
public static final boolean productPossible(Matrix m1, Matrix m2)
m1
and m2
is possible.
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int compareTo(Matrix object)
object
.
If object
is a matrix, but not of the same
type, then the strings representation are compared.
compareTo
in interface java.lang.Comparable<Matrix>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |