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.
|
double |
elementSum()
Returns the sum of all elements in 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
|
AxisVector |
getColumn(int column)
Returns a column of the matrix as a vector view
|
double |
getDiagonalValue(int i) |
AVector |
getLeadingDiagonal()
Returns a new vector that contains the leading diagonal values of the matrix
|
AxisVector |
getRow(int row)
Returns a row of the matrix as a vector view
|
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)
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
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
|
void |
transformInPlace(ArrayVector v) |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
columnCount, density, dimensions, innerProduct, isDiagonal, isFullyMutable, isLowerTriangular, isSquare, isSymmetric, isUpperTriangular, rowCount, transposeInPlace, validateabs, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asVector, broadcast, clamp, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, copyTo, dimensionality, elementCount, elementMul, elementSquaredSum, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, get, get, get, getElements, getLongShape, getMatrixComponent, getShape, getShape, getSlices, getSliceViews, getTransposeView, hashCode, innerProduct, innerProduct, innerProduct, inputDimensions, isElementConstrained, isHermitian, isInvertible, isPositiveDefinite, isView, isZeroMatrix, iterator, mul, multiply, multiply, multiplyRow, negate, outerProduct, outputDimensions, pow, reciprocal, reshape, scale, scaleAdd, set, set, set, set, set, set, setElements, setElements, slice, slice, sliceCount, square, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toDoubleBuffer, 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 AxisVector getRow(int row)
AMatrixpublic AxisVector getColumn(int column)
AMatrixpublic double getDiagonalValue(int i)
getDiagonalValue in class ADiagonalMatrixpublic 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 void transformInPlace(AVector v)
ATransformtransformInPlace in class ADiagonalMatrixpublic void transformInPlace(ArrayVector v)
transformInPlace in class ADiagonalMatrixpublic AVector getLeadingDiagonal()
AMatrixgetLeadingDiagonal in class AMatrixpublic boolean isIdentity()
ATransformisIdentity in class ADiagonalMatrixpublic AMatrix inverse()
ATransformpublic double determinant()
AMatrixdeterminant in class ADiagonalMatrixpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AMatrixpublic double elementSum()
AMatrixelementSum in interface INDArrayelementSum in class AMatrixpublic AMatrix innerProduct(AMatrix a)
innerProduct in class ADiagonalMatrixpublic AMatrix getTranspose()
AMatrixgetTranspose in interface INDArraygetTranspose in class AMatrixpublic IdentityMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.