public abstract class ADiagonalMatrix extends AMatrix 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
|
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
|
double |
getDiagonalValue(int i) |
AMatrix |
innerProduct(ADiagonalMatrix a) |
AMatrix |
innerProduct(AMatrix a) |
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 |
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 |
transformInPlace(ArrayVector v) |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
void |
transposeInPlace() |
void |
validate()
Validates the internal data structure of the INDArray.
|
abs, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asElementList, asVector, broadcast, clamp, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, copyTo, dimensionality, elementCount, elementIterator, elementMul, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, exactClone, exp, fill, get, get, get, get, getColumn, getElements, getLeadingDiagonal, getLongShape, getMatrixComponent, getRow, getShape, getShape, getSlices, getSliceViews, getTranspose, getTransposeView, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isElementConstrained, isHermitian, isInvertible, isOrthogonal, isPositiveDefinite, isView, isZeroMatrix, iterator, log, mul, multiply, multiply, multiplyRow, negate, nonZeroCount, outerProduct, outputDimensions, pow, reciprocal, reshape, scale, scaleAdd, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toDoubleBuffer, toMatrix, toMutableMatrix, toString, toVector, trace, transformgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic boolean isSquare()
ATransformpublic boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArrayisFullyMutable in class AMatrixpublic boolean isSymmetric()
AMatrixisSymmetric in class AMatrixpublic boolean isDiagonal()
AMatrixisDiagonal in class AMatrixpublic boolean isRectangularDiagonal()
isRectangularDiagonal in class AMatrixpublic boolean isUpperTriangular()
AMatrixisUpperTriangular in class AMatrixpublic boolean isLowerTriangular()
AMatrixisLowerTriangular in class AMatrixpublic abstract boolean isMutable()
INDArraypublic double determinant()
AMatrixdeterminant in class AMatrixpublic int dimensions()
public AMatrix innerProduct(ADiagonalMatrix a)
public AMatrix innerProduct(AMatrix a)
innerProduct in class AMatrixpublic void transformInPlace(AVector v)
ATransformtransformInPlace in class AMatrixpublic void transformInPlace(ArrayVector v)
transformInPlace in class AMatrixpublic int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic boolean isIdentity()
ATransformisIdentity in class AMatrixpublic 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 density()
ISparsepublic void validate()
INDArrayCopyright © 2013. All Rights Reserved.