public class PivotedMatrixView extends AbstractMatrix
Matrix.Element| Constructor and Description |
|---|
PivotedMatrixView() |
PivotedMatrixView(Matrix mtx) |
PivotedMatrixView(Matrix mtx,
int[] pivot) |
PivotedMatrixView(Matrix mtx,
int[] rowPivot,
int[] colPivot) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
columnPivot() |
int |
columnPivot(int i) |
int |
columnUnpivot(int i) |
Matrix |
copy()
Clones this matrix.
|
boolean |
equals(Object o)
We ignore guid's for comparisons.
|
Matrix |
getBaseMatrix() |
int |
hashCode() |
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.
|
void |
readExternal(ObjectInput in) |
int[] |
rowPivot() |
int |
rowPivot(int i) |
int |
rowUnpivot(int i) |
Matrix |
swap(int i,
int j)
Swaps indexes
i and j for both both row and column. |
Matrix |
swapColumns(int i,
int j)
Swaps two columns in this matrix.
|
Matrix |
swapRows(int i,
int j)
Swaps two rows in this matrix.
|
Vector |
viewColumn(int col)
Creates new view into matrix column .
|
Vector |
viewRow(int row)
Creates new view into matrix row.
|
void |
writeExternal(ObjectOutput out) |
allSpliterator, assign, assign, assign, assign, assignColumn, assignRow, columnSize, compute, density, destroy, determinant, divide, foldColumns, foldMap, foldRows, get, getCol, getElement, getMaxAmountOfColumns, getMetaStorage, getRow, getStorage, getX, guid, inverse, isArrayBased, isDense, isDistributed, isRandomAccess, isSequentialAccess, likeIdentity, map, map, maxAbsRowSumNorm, maxElement, maxValue, minElement, minus, minValue, nonZeroElements, nonZeroSpliterator, plus, plus, rowSize, set, setColumn, setRow, setStorage, setX, storageGet, storageSet, sum, times, times, times, toString, transpose, viewDiagonal, viewPart, viewPartclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttribute, hasAttribute, removeAttribute, setAttributepublic PivotedMatrixView()
public PivotedMatrixView(Matrix mtx, int[] rowPivot, int[] colPivot)
mtx - Parent matrix.rowPivot - Pivot array for rows.colPivot - Pivot array for columns.public PivotedMatrixView(Matrix mtx)
mtx - Parent matrix.public PivotedMatrixView(Matrix mtx, int[] pivot)
mtx - Parent matrix.pivot - Pivot array for rows and columns.public Matrix swap(int i, int j)
i and j for both both row and column.i - First index to swap.j - Second index to swap.public Matrix swapRows(int i, int j)
swapRows in interface MatrixswapRows in class AbstractMatrixi - Row #1.j - Row #2.public Matrix swapColumns(int i, int j)
swapColumns in interface MatrixswapColumns in class AbstractMatrixi - Column #1.j - Column #2.public Vector viewRow(int row)
viewRow in interface MatrixviewRow in class AbstractMatrixrow - Row index.public Vector viewColumn(int col)
viewColumn in interface MatrixviewColumn in class AbstractMatrixcol - Column index.public Matrix getBaseMatrix()
public int[] rowPivot()
public int[] columnPivot()
public int rowPivot(int i)
i - Index for row pivot.public int columnPivot(int i)
i - Index for column pivot.public int rowUnpivot(int i)
i - Index for row unpivot.public int columnUnpivot(int i)
i - Index for column unpivot.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractMatrixIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractMatrixIOExceptionClassNotFoundExceptionpublic 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.public int hashCode()
hashCode in class AbstractMatrixpublic boolean equals(Object o)
equals in class AbstractMatrix
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018