|
Parallel Colt 0.7.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcern.colt.PersistentObject
cern.colt.matrix.AbstractMatrix
cern.colt.matrix.AbstractMatrix3D
public abstract class AbstractMatrix3D
Abstract base class for 3-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(AbstractMatrix3D B)
Sanity check for operations requiring two matrices with the same number of slices, rows and columns. |
void |
checkShape(AbstractMatrix3D B,
AbstractMatrix3D C)
Sanity check for operations requiring matrices with the same number of slices, rows and columns. |
int |
columns()
Returns the number of columns. |
int |
columnStride()
Returns the column stride. |
long |
index(int slice,
int row,
int column)
Returns the position of the given coordinate within the (virtual or non-virtual) internal 1-dimensional array. |
int |
rows()
Returns the number of rows. |
int |
rowStride()
Returns the row stride. |
int |
size()
Returns the number of cells which is slices()*rows()*columns(). |
int |
slices()
Returns the number of slices. |
int |
sliceStride()
Returns the slice 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 checkShape(AbstractMatrix3D B)
IllegalArgumentException - if
slices() != B.slices() || rows() != B.rows() || columns() != B.columns()
.
public void checkShape(AbstractMatrix3D B,
AbstractMatrix3D C)
IllegalArgumentException - if
slices() != B.slices() || rows() != B.rows() || columns() != B.columns() || slices() != C.slices() || rows() != C.rows() || columns() != C.columns()
.public int columns()
public int columnStride()
public long index(int slice,
int row,
int column)
slice - the index of the slice-coordinate.row - the index of the row-coordinate.column - the index of the third-coordinate.public int rows()
public int rowStride()
public int size()
size in class AbstractMatrixpublic int slices()
public int sliceStride()
public String toStringShort()
|
Parallel Colt 0.7.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||