public final class SubsetMatrix extends ABooleanMatrix implements ISparse
| Modifier and Type | Method and Description |
|---|---|
double |
calculateElement(int i,
AVector inputVector)
Calculates a single element of the output.
|
double |
calculateElement(int i,
Vector inputVector) |
int |
columnCount()
Returns the number of columns in the matrix
|
static SubsetMatrix |
create(Index components,
int inputDimensions) |
double |
density()
Computes the density ratio of this sparse array (proportion of non-zero elements)
|
double |
elementSum()
Returns the sum of all elements in the matrix
|
SubsetMatrix |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
AxisVector |
getRow(int i)
Returns a row of the matrix as a vector view
|
int |
inputDimensions()
Returns the number of dimensions required for input vectors
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
int |
outputDimensions()
Returns the number of dimensions required for output vectors
|
int |
rowCount()
Returns the number of rows in the matrix
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
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 |
validate()
Validates the internal data structure of the INDArray.
|
isBoolean, isFullyMutableabs, add, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, clamp, clone, cloneRow, compose, compose, composeWith, composeWith, copyColumnTo, copyOfMatrix, copyOfTranslationVector, copyRowTo, copyTo, determinant, dimensionality, divide, divide, elementCount, elementDiv, elementIterator, elementMul, elementSquaredSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, exp, fill, get, get, get, getBand, getBandWrapped, getColumn, getElements, getLeadingDiagonal, getLongShape, getMatrixComponent, getShape, getShape, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inverse, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSameShape, isSameShape, isSquare, isSymmetric, isUpperTriangular, isView, isZero, iterator, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiply, multiplyRow, negate, outerProduct, pow, reciprocal, reshape, reshape, scale, scaleAdd, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, sub, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toString, toVector, trace, transform, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, unsafeSet, upperBandwidth, upperBandwidthLimitgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponentspublic static SubsetMatrix create(Index components, int inputDimensions)
public void transform(AVector source, AVector dest)
ATransformtransform in interface ITransformtransform in class AMatrixpublic int inputDimensions()
ATransforminputDimensions in interface ITransforminputDimensions in class AMatrixpublic int outputDimensions()
ATransformoutputDimensions in interface ITransformoutputDimensions in class AMatrixpublic double elementSum()
AMatrixelementSum in interface INDArrayelementSum in class AMatrixpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AMatrixpublic int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic double density()
ISparsepublic AxisVector getRow(int i)
AMatrixpublic double calculateElement(int i,
AVector inputVector)
ATransformcalculateElement in class AMatrixpublic double calculateElement(int i,
Vector inputVector)
calculateElement in class AMatrixpublic double get(int row,
int column)
AMatrixpublic double unsafeGet(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic SubsetMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixpublic void validate()
INDArrayCopyright © 2013. All Rights Reserved.