public class ViewMatrix extends AbstractMatrix
Matrix
.Matrix.Element
Constructor and Description |
---|
ViewMatrix()
Constructor for
Externalizable interface. |
ViewMatrix(Matrix parent,
int rowOff,
int colOff,
int rows,
int cols) |
ViewMatrix(MatrixStorage sto,
int rowOff,
int colOff,
int rows,
int cols) |
Modifier and Type | Method and Description |
---|---|
Matrix |
copy()
Clones this matrix.
|
Matrix |
like(int rows,
int cols)
Creates new empty matrix of the same underlying class but of different size.
|
Vector |
likeVector(int crd)
Creates new empty vector of compatible properties (similar or the same flavor) to this matrix.
|
allSpliterator, assign, assign, assign, assign, assignColumn, assignRow, columnSize, compute, density, destroy, divide, equals, foldColumns, foldMap, foldRows, get, getCol, getElement, getMetaStorage, getRow, getStorage, getX, guid, hashCode, isArrayBased, isDense, isDistributed, isRandomAccess, isSequentialAccess, map, map, maxElement, maxValue, minElement, minus, minValue, nonZeroElements, nonZeroSpliterator, plus, plus, readExternal, rowSize, set, setColumn, setRow, setStorage, setX, storageGet, storageSet, sum, swapColumns, swapRows, times, times, times, toString, transpose, viewColumn, viewDiagonal, viewRow, writeExternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttribute, hasAttribute, removeAttribute, setAttribute
public ViewMatrix()
Externalizable
interface.public ViewMatrix(Matrix parent, int rowOff, int colOff, int rows, int cols)
parent
- Backing parent Matrix
.rowOff
- Row offset to parent matrix.colOff
- Column offset to parent matrix.rows
- Amount of rows in the view.cols
- Amount of columns in the view.public ViewMatrix(MatrixStorage sto, int rowOff, int colOff, int rows, int cols)
sto
- Backing parent MatrixStorage
.rowOff
- Row offset to parent storage.colOff
- Column offset to parent storage.rows
- Amount of rows in the view.cols
- Amount of columns in the view.public Matrix copy()
NOTE: new matrix will have the same flavor as the this matrix but a different ID.
copy
in interface Matrix
copy
in class AbstractMatrix
public Matrix like(int rows, int cols)
NOTE: new matrix will have the same flavor as the this matrix but a different ID.
rows
- Number of rows for new matrix.cols
- Number of columns for new matrix.public Vector likeVector(int crd)
crd
- Cardinality of the vector.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019