public class QuadtreeMatrix extends ABlockMatrix implements ISparse
cols, rows| Modifier and Type | Method and Description |
|---|---|
void |
add(AVector v)
Adds a vector to every row of this matrix.
|
void |
add(double v)
Adds a double value to all elements in this array.
|
void |
addAt(int row,
int column,
double value)
Adds a value at a specific position in the matrix, mutating the matrix
Does not perform bounds checking - this in an unsafe operation
|
int |
columnBlockCount() |
void |
copyColumnTo(int col,
double[] data,
int offset)
Copies the elements in a selected row of this matrix to a double array
|
void |
copyRowTo(int row,
double[] data,
int offset)
Copies the elements in a slected row of this matrix to a double array
|
static QuadtreeMatrix |
create(AMatrix c00,
AMatrix c01,
AMatrix c10,
AMatrix c11) |
double |
density()
Computes the density ratio of this sparse array (proportion of non-zero elements)
|
double |
elementMax()
Returns the maximum element value in this array.
|
double |
elementMin()
Returns the maximum element value in this array.
|
double |
elementSum()
Returns the sum of all elements in this matrix
|
AMatrix |
exactClone()
Creates a deep clone of an array, using the same class implementation as the original array
|
void |
fill(double v)
Fills this array with a single double value.
|
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) |
AVector |
getColumnView(int col)
Returns a column of the matrix as a vector view.
|
int |
getRowBlockIndex(int row) |
AVector |
getRowView(int row)
Returns a row of the matrix as a vector view.
|
boolean |
isDiagonal()
Returns true iff this matrix is a square diagonal matrix
|
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)
|
boolean |
isZero()
Returns true if the matrix is the zero matrix (all components zero)
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
int |
rowBlockCount() |
void |
set(int row,
int column,
double value)
Sets a value at a given position in a mutable 2D array
|
double |
unsafeGet(int row,
int column)
Gets an element in the matrix in an unsafe fashion, without performing bound checks
The result is undefined if the row and column are out of bounds.
|
void |
unsafeSet(int row,
int column,
double value)
Sets an element value in the matrix in an unsafe fashion, without performing bound checks
The result is undefined if the row and column are out of bounds.
|
static QuadtreeMatrix |
wrap(AMatrix c00,
AMatrix c01,
AMatrix c10,
AMatrix c11) |
componentCount, getComponent, isBoolean, sumColumnCounts, sumRowCountsbandLength, checkColumn, checkIndex, checkRow, checkSameShape, checkSameShape, checkSquare, columnCount, elementCount, getShape, getShape, getShapeClone, isSameShape, isSameShape, isSameShape, isSquare, rowCountabs, add, add, add2, 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, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsByRows, equalsTranspose, exp, get, get, get, getBand, getBandWrapped, getColumn, getColumnClone, getColumns, getElements, getLeadingDiagonal, getLongShape, getRow, getRowClone, getRows, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hasOrthonormalRows, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, 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, 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, upperBandwidth, upperBandwidthLimit, validateabsCopy, add, addAt, addInnerProduct, addPower, addPower, broadcastLike, checkMutable, divideCopy, elementAbsPowSum, elementPowSum, 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, elementAbsPowSum, elementPowSum, 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 QuadtreeMatrix wrap(AMatrix c00, AMatrix c01, AMatrix c10, AMatrix c11)
public static QuadtreeMatrix create(AMatrix c00, AMatrix c01, AMatrix c10, AMatrix c11)
public boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArrayisFullyMutable in class AMatrixpublic boolean isMutable()
INDArraypublic boolean isZero()
AMatrixisZero in interface INDArrayisZero in class ABlockMatrixpublic boolean isDiagonal()
IMatrixisDiagonal in interface IMatrixisDiagonal in class AMatrixpublic double get(int row,
int column)
INDArraypublic void set(int row,
int column,
double value)
INDArraypublic double unsafeGet(int row,
int column)
AMatrixpublic void unsafeSet(int row,
int column,
double value)
AMatrixpublic void addAt(int row,
int column,
double value)
IMatrixpublic void copyRowTo(int row,
double[] data,
int offset)
AMatrixcopyRowTo in class ABlockMatrixrow - The index of the selected rowdata - Destination double[] arrayoffset - Offset into destination arraypublic void copyColumnTo(int col,
double[] data,
int offset)
AMatrixcopyColumnTo in class ABlockMatrixdata - Destination double[] arraypublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AMatrixpublic double elementSum()
AMatrixelementSum in interface INDArrayelementSum in class AMatrixpublic double elementMin()
INDArrayelementMin in interface INDArrayelementMin in class AbstractArray<AVector>public double elementMax()
INDArrayelementMax in interface INDArrayelementMax in class AbstractArray<AVector>public void fill(double v)
INDArraypublic void add(double v)
INDArraypublic void add(AVector v)
AMatrixpublic AVector getRowView(int row)
IMatrixgetRowView in interface IMatrixgetRowView in class ABlockMatrixpublic AVector getColumnView(int col)
IMatrixgetColumnView in interface IMatrixgetColumnView in class ABlockMatrixpublic AMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixpublic double density()
ISparsedensity in interface ISparsedensity in class AbstractArray<AVector>public 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 int columnBlockCount()
columnBlockCount in class ABlockMatrixpublic int rowBlockCount()
rowBlockCount in class ABlockMatrixCopyright © 2016. All rights reserved.