public class TransposedMatrixView extends AbstractMatrix
Matrix.Matrix.Element| Constructor and Description |
|---|
TransposedMatrixView() |
TransposedMatrixView(Matrix mtx) |
| Modifier and Type | Method and Description |
|---|---|
int |
columnSize()
Gets number of columns in this matrix.
|
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.
|
int |
rowSize()
Gets number of rows in this matrix.
|
protected double |
storageGet(int row,
int col) |
protected void |
storageSet(int row,
int col,
double v) |
allSpliterator, assign, assign, assign, assign, assignColumn, assignRow, compute, density, destroy, determinant, divide, equals, foldColumns, foldMap, foldRows, get, getCol, getElement, getMaxAmountOfColumns, getMetaStorage, getRow, getStorage, getX, guid, hashCode, inverse, isArrayBased, isDense, isDistributed, isRandomAccess, isSequentialAccess, likeIdentity, map, map, maxAbsRowSumNorm, maxElement, maxValue, minElement, minus, minValue, nonZeroElements, nonZeroSpliterator, plus, plus, readExternal, set, setColumn, setRow, setStorage, setX, sum, swapColumns, swapRows, times, times, times, toString, transpose, viewColumn, viewDiagonal, viewPart, viewPart, viewRow, writeExternalclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttribute, hasAttribute, removeAttribute, setAttributepublic TransposedMatrixView()
public TransposedMatrixView(Matrix mtx)
mtx - Parent matrix.protected void storageSet(int row,
int col,
double v)
storageSet in class AbstractMatrixrow - Row index in the matrix.col - Column index in the matrix.v - Value to set.protected double storageGet(int row,
int col)
storageGet in class AbstractMatrixrow - Row index in the matrix.col - Column index in the matrix.public int rowSize()
rowSize in interface MatrixrowSize in class AbstractMatrixpublic int columnSize()
columnSize in interface MatrixcolumnSize in class AbstractMatrixpublic Matrix copy()
NOTE: new matrix will have the same flavor as the this matrix but a different ID.
copy in interface Matrixcopy in class AbstractMatrixpublic 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 Fabric : ver. 2.6.0 Release Date : July 10 2018