public abstract class AbstractMatrix2D extends AbstractMatrix
int, double, etc.
First see the package summary and javadoc tree view to get the broad picture.
Note that this implementation is not synchronized.
serialVersionUID| Modifier and Type | Method and Description |
|---|---|
void |
checkShape(AbstractMatrix2D B)
Sanity check for operations requiring two matrices with the same number of columns and rows.
|
void |
checkShape(AbstractMatrix2D B,
AbstractMatrix2D C)
Sanity check for operations requiring matrices with the same number of columns and rows.
|
int |
columns()
Returns the number of columns.
|
int |
rows()
Returns the number of rows.
|
int |
size()
Returns the number of cells which is rows()*columns().
|
java.lang.String |
toStringShort()
Returns a string representation of the receiver's shape.
|
ensureCapacity, trimToSizeclonepublic void checkShape(AbstractMatrix2D B)
java.lang.IllegalArgumentException - if columns() != B.columns() || rows() != B.rows().public void checkShape(AbstractMatrix2D B, AbstractMatrix2D C)
java.lang.IllegalArgumentException - if columns() != B.columns() || rows() != B.rows() || columns() != C.columns() || rows() != C.rows().public int columns()
public int rows()
public int size()
size in class AbstractMatrixpublic java.lang.String toStringShort()
Jump to the Colt Homepage