|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSci.maths.matrices.Matrix
The Matrix superclass provides an abstract encapsulation for matrices.
Field Summary | |
protected int |
numCols
The number of columns. |
protected int |
numRows
The number of rows. |
Constructor Summary | |
Matrix(int rows,
int cols)
Constructs a matrix. |
Method Summary | |
int |
columns()
Returns the number of columns. |
protected static java.lang.String |
getInvalidElementMsg(int i,
int j)
Returns an "invalid element" error message. |
int |
rows()
Returns the number of rows. |
abstract Matrix |
transpose()
Returns the transpose of this matrix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface JSci.maths.algebras.VectorSpace.Member |
scalarDivide |
Methods inherited from interface JSci.maths.algebras.Module.Member |
scalarMultiply |
Methods inherited from interface JSci.maths.groups.AbelianGroup.Member |
add, negate, subtract |
Methods inherited from interface JSci.maths.fields.Ring.Member |
multiply |
Field Detail |
protected final int numRows
protected final int numCols
Constructor Detail |
public Matrix(int rows, int cols)
Method Detail |
public final int rows()
public final int columns()
public abstract Matrix transpose()
protected static java.lang.String getInvalidElementMsg(int i, int j)
i
- row index of the elementj
- column index of the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |