cern.colt.matrix.impl
Class AbstractMatrix3D
- java.lang.Object
-
- cern.colt.PersistentObject
-
- cern.colt.matrix.impl.AbstractMatrix
-
- cern.colt.matrix.impl.AbstractMatrix3D
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- DoubleMatrix3D, ObjectMatrix3D
public abstract class AbstractMatrix3D extends AbstractMatrix
Abstract base class for 3-d matrices holding objects or primitive data types such asint,double, etc. First see the package summary and javadoc tree view to get the broad picture.Note that this implementation is not synchronized.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class cern.colt.PersistentObject
serialVersionUID
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcheckShape(AbstractMatrix3D B)Sanity check for operations requiring two matrices with the same number of slices, rows and columns.voidcheckShape(AbstractMatrix3D B, AbstractMatrix3D C)Sanity check for operations requiring matrices with the same number of slices, rows and columns.intcolumns()Returns the number of columns.introws()Returns the number of rows.intsize()Returns the number of cells which is slices()*rows()*columns().intslices()Returns the number of slices.java.lang.StringtoStringShort()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
-
-
-
-
Method Detail
-
checkShape
public void checkShape(AbstractMatrix3D B)
Sanity check for operations requiring two matrices with the same number of slices, rows and columns.- Throws:
java.lang.IllegalArgumentException- if slices() != B.slices() || rows() != B.rows() || columns() != B.columns().
-
checkShape
public void checkShape(AbstractMatrix3D B, AbstractMatrix3D C)
Sanity check for operations requiring matrices with the same number of slices, rows and columns.- Throws:
java.lang.IllegalArgumentException- if slices() != B.slices() || rows() != B.rows() || columns() != B.columns() || slices() != C.slices() || rows() != C.rows() || columns() != C.columns().
-
columns
public int columns()
Returns the number of columns.
-
rows
public int rows()
Returns the number of rows.
-
size
public int size()
Returns the number of cells which is slices()*rows()*columns().- Specified by:
sizein classAbstractMatrix
-
slices
public int slices()
Returns the number of slices.
-
toStringShort
public java.lang.String toStringShort()
Returns a string representation of the receiver's shape.
-
-
DMelt 3.0 © DataMelt by jWork.ORG