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 vector view of the leading diagonal values of the matrix
|
AxisVector |
getRow(int row)
Returns a row of the matrix as a vector view
|
IdentityMatrix |
getTransposeView()
Returns a transposed view of the array.
|
AMatrix |
innerProduct(AMatrix a) |
Vector |
innerProduct(AVector v) |
Matrix |
innerProduct(Matrix a) |
AMatrix |
inverse()
Return the inverse of this transformation if possible
|
boolean |
isBoolean()
Returns true if the array is boolean (contains only 0.0 or 1.0 values)
|
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)
|
boolean |
isOrthogonal() |
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() |
Vector |
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
|
Vector |
transform(Vector source)
Transforms a vector, returning a new transformed vector
|
void |
transformInPlace(AArrayVector v) |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
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.
|
double |
unsafeGetDiagonalValue(int i) |
columnCount, copyColumnTo, copyRowTo, density, dimensions, getBand, getTranspose, innerProduct, isDiagonal, isFullyMutable, isLowerTriangular, isRectangularDiagonal, isSquare, isSymmetric, isUpperTriangular, lowerBandwidthLimit, rowCount, toMatrix, toMatrixTranspose, transform, transposeInnerProduct, transposeInPlace, upperBandwidthLimit, validateelementSquaredSum, fill, lowerBandwidth, 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, exp, get, get, get, getBandWrapped, getElements, getLongShape, getMatrixComponent, getShape, getShape, getSlices, getSliceViews, getTransposeCopy, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, inputDimensions, isElementConstrained, isHermitian, isInvertible, 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, transposeInnerProduct, unsafeSetgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponentspublic static IdentityMatrix create(int i)
public boolean isMutable()
INDArrayisMutable in interface INDArrayisMutable in class ADiagonalMatrixpublic boolean isBoolean()
INDArrayisBoolean in interface INDArrayisBoolean in class ADiagonalMatrixpublic double calculateElement(int i,
AVector v)
ATransformcalculateElement in class ADiagonalMatrixpublic double get(int row,
int column)
AMatrixpublic double unsafeGet(int row,
int column)
AMatrixpublic AxisVector getRow(int row)
AMatrixgetRow in class ABandedMatrixpublic AxisVector getColumn(int column)
AMatrixpublic double getDiagonalValue(int i)
getDiagonalValue in class ADiagonalMatrixpublic double unsafeGetDiagonalValue(int i)
unsafeGetDiagonalValue 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 Vector transform(AVector source)
ATransformpublic Vector transform(Vector source)
ATransformpublic void transformInPlace(AVector v)
ATransformtransformInPlace in class ADiagonalMatrixpublic void transformInPlace(AArrayVector v)
transformInPlace in class ADiagonalMatrixpublic AVector getLeadingDiagonal()
AMatrixgetLeadingDiagonal in class AMatrixpublic boolean isIdentity()
ATransformisIdentity in class ADiagonalMatrixpublic boolean isOrthogonal()
isOrthogonal in class AMatrixpublic AMatrix inverse()
ATransformpublic double determinant()
AMatrixdeterminant in class ADiagonalMatrixpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class ABandedMatrixpublic double elementSum()
AMatrixelementSum in interface INDArrayelementSum in class ABandedMatrixpublic AMatrix innerProduct(AMatrix a)
innerProduct in class ADiagonalMatrixpublic Matrix innerProduct(Matrix a)
innerProduct in class ADiagonalMatrixpublic Vector innerProduct(AVector v)
innerProduct in class AMatrixpublic IdentityMatrix getTransposeView()
INDArraygetTransposeView in interface INDArraygetTransposeView in class ADiagonalMatrixpublic IdentityMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.