public class BlockDiagonalMatrix extends ABlockMatrix implements ISparse
cols, rows| Modifier and Type | Method and Description |
|---|---|
int |
columnBlockCount() |
void |
copyColumnTo(int col,
double[] dest,
int destOffset)
Copies the elements in a selected row of this matrix to a double array
|
void |
copyRowTo(int row,
double[] dest,
int destOffset)
Copies the elements in a slected row of this matrix to a double array
|
static BlockDiagonalMatrix |
create(AMatrix... blocks) |
double |
density()
Computes the density ratio of this sparse array (proportion of non-zero elements)
|
double |
elementAbsPowSum(double p)
Returns the sum of the absolute values of all the elements raised to a specified power
|
double |
elementPowSum(double p)
Returns the sum of all the elements raised to a specified power
|
AMatrix |
exactClone()
Creates a deep clone of an array, using the same class implementation as the original array
|
double |
get(int row,
int column)
Returns the double value at the specified position in a 2D matrix
|
AMatrix |
getBlock(int rowBlock,
int colBlock) |
int |
getBlockColumnCount(int colBlock) |
int |
getBlockColumnStart(int colBlock) |
int |
getBlockRowCount(int rowBlock) |
int |
getBlockRowStart(int rowBlock) |
int |
getColumnBlockIndex(int col) |
int |
getRowBlockIndex(int row) |
boolean |
hasUncountable()
Checks to see if any element in the matrix is NaN of Infinite.
|
boolean |
isFullyMutable()
If this method returns true, the INDArray is guaranteed to be fully mutable
in all positions i.e.
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
int |
rowBlockCount() |
void |
set(int row,
int column,
double value)
Sets a value at a given position in a mutable 2D array
|
componentCount, getColumnView, getComponent, getRowView, isBoolean, isZero, sumColumnCounts, sumRowCountsbandLength, checkColumn, checkIndex, checkRow, checkSameShape, checkSameShape, checkSquare, columnCount, elementCount, getShape, getShape, getShapeClone, isSameShape, isSameShape, isSameShape, isSquare, rowCountabs, add, add, add, add, add2, addAt, addCopy, addCopy, addCopy, addCopy, addCopy, addInnerProduct, addInnerProduct, addInnerProduct, addMultiple, addMultiple, addMultiple, addOuterProduct, addOuterProduct, addRowMultiple, addToArray, applyOp, applyOp, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandPosition, bandStartColumn, bandStartRow, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, checkColumnCount, checkDimension, checkRowCount, checkShape, clamp, clone, composeWith, copy, dense, denseClone, determinant, diagonalProduct, dimensionality, divide, divide, divide, divide, elementIterator, elementsEqual, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsByRows, equalsTranspose, exp, fill, get, get, get, getBand, getBandWrapped, getColumn, getColumnClone, getColumns, getElements, getLeadingDiagonal, getLongShape, getRow, getRowClone, getRows, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hasOrthonormalRows, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isLowerTriangular, isOrthogonal, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSymmetric, isUpperTriangular, isView, iterator, join, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiply, multiply, multiply, multiplyCopy, multiplyRow, mutable, negate, nonZeroCount, outerProduct, outputDimensions, pow, rank, reciprocal, reduce, reduce, reduceSlices, reduceSlices, reorder, reorder, replaceColumn, replaceRow, reshape, reshape, rotateView, rowDotProduct, scaleAdd, scaleAdd, set, set, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sparse, sparseClone, sqrt, square, sub, sub, sub, subArray, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toNestedDoubleArrays, toSliceArray, toString, toStringFull, toVector, trace, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, unsafeGet, unsafeSet, upperBandwidth, upperBandwidthLimit, validateabsCopy, add, addAt, addInnerProduct, addPower, addPower, broadcastLike, checkMutable, divideCopy, elementMax, elementMin, elementProduct, equals, equalsArray, get, get, get, get, get, getComponents, getElements, getElements, getElements, isDense, isSparse, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, sub, subCopy, withComponentsfinalize, getClass, notify, notifyAll, wait, wait, waitabsCopy, addAt, addPower, addPower, broadcastLike, checkMutable, divideCopy, elementMax, elementMin, elementProduct, equalsArray, get, get, get, get, get, getComponents, getElements, getElements, getElements, isDense, isSparse, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, subCopy, withComponentsforEach, spliteratorpublic static BlockDiagonalMatrix create(AMatrix... blocks)
public boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArrayisFullyMutable in class AMatrixpublic boolean isMutable()
INDArraypublic AMatrix getBlock(int rowBlock, int colBlock)
getBlock in class ABlockMatrixpublic int getBlockColumnStart(int colBlock)
getBlockColumnStart in class ABlockMatrixpublic int getBlockRowStart(int rowBlock)
getBlockRowStart in class ABlockMatrixpublic int getBlockColumnCount(int colBlock)
getBlockColumnCount in class ABlockMatrixpublic int getBlockRowCount(int rowBlock)
getBlockRowCount in class ABlockMatrixpublic int getColumnBlockIndex(int col)
getColumnBlockIndex in class ABlockMatrixpublic int getRowBlockIndex(int row)
getRowBlockIndex in class ABlockMatrixpublic double get(int row,
int column)
INDArraypublic void set(int row,
int column,
double value)
INDArraypublic AMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixpublic int columnBlockCount()
columnBlockCount in class ABlockMatrixpublic int rowBlockCount()
rowBlockCount in class ABlockMatrixpublic void copyColumnTo(int col,
double[] dest,
int destOffset)
AMatrixcopyColumnTo in class ABlockMatrixdest - Destination double[] arraypublic void copyRowTo(int row,
double[] dest,
int destOffset)
AMatrixcopyRowTo in class ABlockMatrixrow - The index of the selected rowdest - Destination double[] arraydestOffset - Offset into destination arraypublic double density()
ISparsedensity in interface ISparsedensity in class AbstractArray<AVector>public boolean hasUncountable()
AMatrixhasUncountable in interface INDArrayhasUncountable in class AMatrixpublic double elementPowSum(double p)
elementPowSum in interface INDArrayelementPowSum in class AbstractArray<AVector>public double elementAbsPowSum(double p)
elementAbsPowSum in interface INDArrayelementAbsPowSum in class AbstractArray<AVector>Copyright © 2016. All rights reserved.