public final class DiagonalMatrix extends ADiagonalMatrix
dimensions| Constructor and Description |
|---|
DiagonalMatrix(int dimensions) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateElement(int i,
AVector v)
Calculates a single element of the output.
|
DiagonalMatrix |
clone()
Clones the transform, performing a deep copy where needed
|
static DiagonalMatrix |
create(AVector v) |
static DiagonalMatrix |
create(double... values) |
double |
determinant()
Calculates the determinant of the matrix.
|
DiagonalMatrix |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
double |
getDiagonalValue(int i) |
Vector |
getLeadingDiagonal()
Returns a new vector that contains the leading diagonal values of the matrix
|
AMatrix |
innerProduct(ADiagonalMatrix a) |
AMatrix |
innerProduct(AMatrix a) |
DiagonalMatrix |
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 |
multiply(double factor) |
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
double |
trace() |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
static DiagonalMatrix |
wrap(double[] data) |
columnCount, density, dimensions, isFullyMutable, isSquare, rowCount, transposeInPlaceadd, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asVector, broadcast, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, dimensionality, elementCount, elementMul, elementSum, epsilonEquals, equals, equals, equals, equals, get, get, get, getColumn, getLongShape, getMatrixComponent, getRow, getShape, getSlices, getTranspose, hashCode, innerProduct, innerProduct, innerProduct, inputDimensions, isElementConstrained, isInvertible, isView, isZeroMatrix, iterator, mul, multiplyRow, outerProduct, outputDimensions, reshape, scale, set, set, set, set, set, set, setElements, setElements, slice, sliceCount, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toMutableMatrix, toString, toVector, transformgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic static DiagonalMatrix create(double... values)
public static DiagonalMatrix create(AVector v)
public static DiagonalMatrix wrap(double[] data)
public double get(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic boolean isMutable()
INDArrayisMutable in interface INDArrayisMutable in class ADiagonalMatrixpublic void multiply(double factor)
public double calculateElement(int i,
AVector v)
ATransformcalculateElement in class ADiagonalMatrixpublic void transformInPlace(AVector v)
ATransformtransformInPlace in class ADiagonalMatrixpublic boolean isIdentity()
ATransformisIdentity in class ADiagonalMatrixpublic DiagonalMatrix clone()
ATransformpublic double determinant()
AMatrixdeterminant in class ADiagonalMatrixpublic DiagonalMatrix inverse()
ATransformpublic double getDiagonalValue(int i)
getDiagonalValue in class ADiagonalMatrixpublic Vector getLeadingDiagonal()
AMatrixgetLeadingDiagonal in class AMatrixpublic AMatrix innerProduct(AMatrix a)
innerProduct in class ADiagonalMatrixpublic AMatrix innerProduct(ADiagonalMatrix a)
innerProduct in class ADiagonalMatrixpublic DiagonalMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.