public abstract class Matrix extends java.lang.Object implements Algebra.Member
Modifier and Type | Field and Description |
---|---|
protected static int |
CLASS_SPECIFIC
Storage format identifier.
|
protected int |
numCols
The number of columns.
|
protected int |
numRows
The number of rows.
|
protected int |
storageFormat |
Constructor and Description |
---|
Matrix(int rows,
int cols)
Constructs a matrix.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
scalarDivide
scalarMultiply
add, negate, subtract
multiply
protected static final int CLASS_SPECIFIC
protected int storageFormat
protected final int numRows
protected final int numCols
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