public class IdentityMatrix extends ADiagonalMatrix
dimensions| Modifier and Type | Method and Description |
|---|---|
double |
calculateElement(int i,
AVector v)
Calculates a single element of the output.
|
static IdentityMatrix |
create(int i) |
double |
determinant()
Calculates the determinant of the matrix.
|
IdentityMatrix |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
AVector |
getLeadingDiagonal()
Returns a new vector that contains the leading diagonal values of the matrix
|
AMatrix |
getTranspose()
Returns a transposed version of this matrix.
|
AMatrix |
innerProduct(AMatrix a) |
AMatrix |
inverse()
Return the inverse of this transformation if possible
|
boolean |
isIdentity()
Returns true if this transform is known to be the identity function, i.e.
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
double |
trace() |
AVector |
transform(AVector source)
Transforms a vector, returning a new transformed vector
|
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
columnCount, density, dimensions, getDiagonalValue, innerProduct, isFullyMutable, isSquare, rowCount, transformInPlace, transposeInPlaceadd, add, add, add, addAt, addMultiple, applyOp, applyOp, asVector, broadcast, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, dimensionality, elementCount, elementMul, elementSum, epsilonEquals, equals, equals, equals, equals, get, get, get, getColumn, getMatrixComponent, getRow, getShape, getSlices, hashCode, innerProduct, innerProduct, innerProduct, inputDimensions, isElementConstrained, isInvertible, isView, isZeroMatrix, iterator, mul, outerProduct, outputDimensions, reshape, scale, set, set, set, set, set, set, slice, sliceCount, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toMutableMatrix, toString, toVectorgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponentspublic static IdentityMatrix create(int i)
public boolean isMutable()
INDArrayisMutable in interface INDArrayisMutable in class ADiagonalMatrixpublic double calculateElement(int i,
AVector v)
ATransformcalculateElement in class ADiagonalMatrixpublic double get(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic void transform(AVector source, AVector dest)
ATransformtransform in interface ITransformtransform in class AMatrixpublic AVector transform(AVector source)
ATransformtransform in class ATransformpublic AVector getLeadingDiagonal()
AMatrixgetLeadingDiagonal in class AMatrixpublic boolean isIdentity()
ATransformisIdentity in class ADiagonalMatrixpublic AMatrix inverse()
ATransformpublic double determinant()
AMatrixdeterminant in class ADiagonalMatrixpublic AMatrix innerProduct(AMatrix a)
innerProduct in class ADiagonalMatrixpublic AMatrix getTranspose()
AMatrixgetTranspose in class AMatrixpublic IdentityMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.