public abstract class AbstractMatrix extends Object implements Matrix, Serializable
Abstract Matrix implements basic functions such as getting base row, getting base column and so on.
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected int |
cellDataLength |
protected int |
columnBase |
protected int |
columns |
protected int |
rowBase |
protected int |
rows |
protected Matrix |
transposeMatrix |
| Constructor and Description |
|---|
AbstractMatrix() |
| Modifier and Type | Method and Description |
|---|---|
int |
columns() |
int |
getBaseColumn()
The index of the first column in a matrix is zero.
|
int |
getBaseRow()
The index of the first row in a matrix is zero.
|
int |
getCellDataLength()
For double matrix, this method returns 8; for integer matrix, it returns 4.
|
Matrix |
getTranspose()
If one never calls niether the method of setTranspose nor the method of transpose, it returns null.
|
int |
rows() |
void |
setTranspose(Matrix matrix)
Manually set the transposed matrix.
|
Matrix |
transpose()
if one has set the transposed matrix by calling the method setTranspose, this method simply return that transposed matrix.
|
protected Matrix transposeMatrix
protected int rows
protected int columns
protected int rowBase
protected int columnBase
protected int cellDataLength
public void setTranspose(Matrix matrix)
MatrixsetTranspose in interface Matrixmatrix - the transpose matrix of the current matrix.public Matrix getTranspose()
MatrixgetTranspose in interface Matrixpublic Matrix transpose()
Matrixpublic int getCellDataLength()
MatrixgetCellDataLength in interface Matrixpublic int getBaseRow()
MatrixgetBaseRow in interface Matrixpublic int getBaseColumn()
MatrixgetBaseColumn in interface MatrixCopyright © 2018 JULIE Lab, Germany. All rights reserved.