public class DiagonalMatrix extends AbstractMatrix
Matrix.
See also: Wikipedia article.
Matrix.Element| Constructor and Description |
|---|
DiagonalMatrix() |
DiagonalMatrix(double[] vals) |
DiagonalMatrix(int size,
double val) |
DiagonalMatrix(Matrix mtx) |
DiagonalMatrix(Vector diagonal) |
| 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.
|
Vector |
viewColumn(int col)
Creates new view into matrix column .
|
Vector |
viewRow(int row)
Creates new view into matrix row.
|
allSpliterator, assign, assign, assign, assign, assignColumn, assignRow, columnSize, 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, rowSize, set, setColumn, setRow, setStorage, setX, storageGet, storageSet, sum, swapColumns, swapRows, times, times, times, toString, transpose, viewDiagonal, viewPart, viewPart, writeExternalclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttribute, hasAttribute, removeAttribute, setAttributepublic DiagonalMatrix()
public DiagonalMatrix(double[] vals)
vals - Backing array of values at diagonal.public DiagonalMatrix(int size,
double val)
size - Size of diagonal.val - Constant value at diagonal.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 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