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.
|
double |
elementSum()
Returns the sum of all elements in 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)
Multiplies all elements of the array by a given double value
|
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() |
void |
transformInPlace(ArrayVector v) |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
void |
validate()
Validates the internal data structure of the INDArray.
|
static DiagonalMatrix |
wrap(double[] data) |
columnCount, density, dimensions, isDiagonal, isFullyMutable, isLowerTriangular, isSquare, isSymmetric, isUpperTriangular, rowCount, transposeInPlaceadd, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asVector, broadcast, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, copyTo, dimensionality, elementCount, elementMul, elementSquaredSum, epsilonEquals, equals, equals, equals, equals, get, get, get, getColumn, getElements, getLongShape, getMatrixComponent, getRow, getShape, getShape, getSlices, getSliceViews, getTranspose, hashCode, innerProduct, innerProduct, innerProduct, inputDimensions, isElementConstrained, isHermitian, isInvertible, isPositiveDefinite, isView, isZeroMatrix, iterator, mul, multiply, multiplyRow, negate, outerProduct, outputDimensions, reshape, scale, scaleAdd, set, set, set, set, set, set, setElements, setElements, slice, slice, sliceCount, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toDoubleBuffer, 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 elementSum()
AMatrixelementSum in interface INDArrayelementSum in class AMatrixpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AMatrixpublic 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)
INDArraypublic double calculateElement(int i,
AVector v)
ATransformcalculateElement in class ADiagonalMatrixpublic void transformInPlace(AVector v)
ATransformtransformInPlace in class ADiagonalMatrixpublic void transformInPlace(ArrayVector v)
transformInPlace 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 AMatrixpublic void validate()
INDArrayvalidate in interface INDArrayvalidate in class ADiagonalMatrixCopyright © 2013. All Rights Reserved.