|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.colt.PersistentObject
cern.colt.matrix.AbstractMatrix
cern.colt.matrix.AbstractMatrix1D
public abstract class AbstractMatrix1D
Abstract base class for 1-d matrices (aka vectors) 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.
Method Summary | |
---|---|
void |
checkSize(AbstractMatrix1D B)
Sanity check for operations requiring two matrices with the same size. |
long |
index(int rank)
Returns the position of the element with the given relative rank within the (virtual or non-virtual) internal 1-dimensional array. |
long |
size()
Returns the number of cells. |
int |
stride()
Returns the stride. |
String |
toStringShort()
Returns a string representation of the receiver's shape. |
Methods inherited from class cern.colt.matrix.AbstractMatrix |
---|
ensureCapacity, isView, 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 checkSize(AbstractMatrix1D B)
IllegalArgumentException
- if size() != B.size().public long index(int rank)
rank
- the rank of the element.public long size()
size
in class AbstractMatrix
public int stride()
public String toStringShort()
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |