public abstract class ADiagonalMatrix extends ABandedMatrix implements ISparse
| Modifier and Type | Field and Description |
|---|---|
protected int |
dimensions |
| Constructor and Description |
|---|
ADiagonalMatrix(int dimensions) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateElement(int i,
AVector v)
Calculates a single element of the output.
|
int |
columnCount()
Returns the number of columns in the matrix
|
void |
copyColumnTo(int col,
double[] dest,
int destOffset) |
void |
copyRowTo(int row,
double[] dest,
int destOffset) |
double |
density()
Computes the density ratio of this sparse array (proportion of non-zero elements)
|
double |
determinant()
Calculates the determinant of the matrix.
|
int |
dimensions()
Returns the number of dimensions of this diagonal matrix
|
AVector |
getBand(int band)
Gets a specific band of the matrix, as a view vector.
|
double |
getDiagonalValue(int i) |
ADiagonalMatrix |
getTranspose()
Returns a transposed version of this matrix.
|
ADiagonalMatrix |
getTransposeView()
Returns a transposed view of the array.
|
AMatrix |
innerProduct(ADiagonalMatrix a) |
AMatrix |
innerProduct(AMatrix a) |
Matrix |
innerProduct(Matrix a) |
boolean |
isBoolean()
Returns true if the array is boolean (contains only 0.0 or 1.0 values)
|
boolean |
isDiagonal()
Returns true iff a matrix is a square diagonal matrix
|
boolean |
isFullyMutable()
Returns true if the INDArray is fully mutable in all positions
i.e.
|
boolean |
isIdentity()
Returns true if this transform is known to be the identity function, i.e.
|
boolean |
isLowerTriangular()
Returns true if a matrix is lower triangular
|
abstract boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
boolean |
isRectangularDiagonal() |
boolean |
isSquare()
Returns true if the transform is square (same number of input and output dimensions)
|
boolean |
isSymmetric()
Returns true if a matrix is symmetric
|
boolean |
isUpperTriangular()
Returns true if a matrix is upper triangular
|
int |
lowerBandwidthLimit()
A limit on the lower bandwidth of the banded matrix.
|
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
|
Matrix |
toMatrix()
Coerces the matrix to the standard mutable Matrix type
in row major order.
|
Matrix |
toMatrixTranspose()
Coerces the transpose of a matrix to the standard mutable Matrix type
in row major order.
|
void |
transform(Vector source,
Vector dest) |
void |
transformInPlace(AArrayVector v) |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
Matrix |
transposeInnerProduct(Matrix s) |
void |
transposeInPlace() |
double |
unsafeGetDiagonalValue(int i) |
int |
upperBandwidthLimit()
A limit on the upper bandwidth of the banded matrix.
|
void |
validate()
Validates the internal data structure of the INDArray.
|
elementSquaredSum, elementSum, fill, getRow, lowerBandwidth, nonZeroCount, upperBandwidthabs, add, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, clamp, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, copyTo, dimensionality, divide, divide, elementCount, elementDiv, elementIterator, elementMul, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, exactClone, exp, get, get, get, get, getBandWrapped, getColumn, getElements, getLeadingDiagonal, getLongShape, getMatrixComponent, getShape, getShape, getSlices, getSliceViews, getTransposeCopy, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isElementConstrained, isHermitian, isInvertible, isOrthogonal, isPositiveDefinite, isSameShape, isSameShape, isView, isZero, iterator, log, mul, multiply, multiply, multiplyRow, negate, outerProduct, outputDimensions, 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, toMutableMatrix, toString, toVector, trace, transform, transform, transform, transposeInnerProduct, unsafeGet, unsafeSetgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponentspublic boolean isSquare()
ATransformpublic boolean isSymmetric()
AMatrixisSymmetric in class ABandedMatrixpublic boolean isDiagonal()
AMatrixisDiagonal in class AMatrixpublic boolean isRectangularDiagonal()
isRectangularDiagonal in class AMatrixpublic boolean isUpperTriangular()
AMatrixisUpperTriangular in class ABandedMatrixpublic boolean isLowerTriangular()
AMatrixisLowerTriangular in class ABandedMatrixpublic abstract boolean isMutable()
INDArraypublic boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArrayisFullyMutable in class ABandedMatrixpublic final int upperBandwidthLimit()
AMatrixupperBandwidthLimit in class ABandedMatrixpublic final int lowerBandwidthLimit()
AMatrixlowerBandwidthLimit in class ABandedMatrixpublic AVector getBand(int band)
AMatrixgetBand in class ABandedMatrixpublic double determinant()
AMatrixdeterminant in class AMatrixpublic int dimensions()
public void copyRowTo(int row,
double[] dest,
int destOffset)
public void copyColumnTo(int col,
double[] dest,
int destOffset)
copyColumnTo in class AMatrixpublic AMatrix innerProduct(ADiagonalMatrix a)
public AMatrix innerProduct(AMatrix a)
innerProduct in class AMatrixpublic Matrix innerProduct(Matrix a)
innerProduct in class AMatrixpublic Matrix transposeInnerProduct(Matrix s)
transposeInnerProduct in class AMatrixpublic void transformInPlace(AVector v)
ATransformtransformInPlace in class AMatrixpublic void transformInPlace(AArrayVector v)
transformInPlace in class AMatrixpublic int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic boolean isIdentity()
ATransformisIdentity in class AMatrixpublic boolean isBoolean()
INDArraypublic void transposeInPlace()
transposeInPlace in class AMatrixpublic double calculateElement(int i,
AVector v)
ATransformcalculateElement in class AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic double getDiagonalValue(int i)
public double unsafeGetDiagonalValue(int i)
public ADiagonalMatrix getTranspose()
AMatrixgetTranspose in interface INDArraygetTranspose in class AMatrixpublic ADiagonalMatrix getTransposeView()
INDArraygetTransposeView in interface INDArraygetTransposeView in class AMatrixpublic double density()
ISparsepublic Matrix toMatrix()
AMatrixtoMatrix in class ABandedMatrixpublic final Matrix toMatrixTranspose()
AMatrixtoMatrixTranspose in class ABandedMatrixpublic void validate()
INDArrayvalidate in interface INDArrayvalidate in class ABandedMatrixCopyright © 2013. All Rights Reserved.