|
Colt 1.2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cern.colt.PersistentObject cern.colt.matrix.impl.AbstractMatrix cern.colt.matrix.impl.AbstractMatrix2D
Abstract base class for 2-d matrices holding objects or primitive data types such as int
, double
, etc.
First see the package summary and javadoc tree view to get the broad picture.
Note that this implementation is not synchronized.
Field Summary |
Fields inherited from class cern.colt.PersistentObject |
serialVersionUID |
Method Summary | |
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(). |
String |
toStringShort()
Returns a string representation of the receiver's shape. |
Methods inherited from class cern.colt.matrix.impl.AbstractMatrix |
ensureCapacity, trimToSize |
Methods inherited from class cern.colt.PersistentObject |
clone |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void checkShape(AbstractMatrix2D B)
IllegalArgumentException
- if columns() != B.columns() || rows() != B.rows().public void checkShape(AbstractMatrix2D B, AbstractMatrix2D C)
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 AbstractMatrix
public String toStringShort()
|
Colt 1.2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |