public abstract class ADiagonalMatrix extends AMatrix implements ISparse
| Modifier and Type | Field and Description |
|---|---|
protected int |
dimensions |
| Constructor and Description |
|---|
ADiagonalMatrix(int dimensions) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateElement(int i,
AVector v)
Calculates a single element of the output.
|
int |
columnCount()
Returns the number of columns in the matrix
|
void |
copyColumnTo(int col,
double[] dest,
int destOffset) |
void |
copyRowTo(int row,
double[] dest,
int destOffset) |
double |
density()
Computes the density ratio of this sparse array (proportion of non-zero elements)
|
double |
determinant()
Calculates the determinant of the matrix.
|
int |
dimensions()
Returns the number of dimensions of this diagonal matrix
|
double |
getDiagonalValue(int i) |
ADiagonalMatrix |
getTranspose()
Returns a transposed version of this matrix.
|
ADiagonalMatrix |
getTransposeView()
Returns a transposed view of the array.
|
AMatrix |
innerProduct(ADiagonalMatrix a) |
AMatrix |
innerProduct(AMatrix a) |
Matrix |
innerProduct(Matrix a) |
boolean |
isBoolean()
Returns true if the array is boolean (contains only 0.0 or 1.0 values)
|
boolean |
isDiagonal()
Returns true iff a matrix is a square diagonal matrix
|
boolean |
isFullyMutable()
Returns true if the INDArray is fully mutable in all positions
i.e.
|
boolean |
isIdentity()
Returns true if this transform is known to be the identity function, i.e.
|
boolean |
isLowerTriangular()
Returns true if a matrix is lower triangular
|
abstract boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
boolean |
isRectangularDiagonal() |
boolean |
isSquare()
Returns true if the transform is square (same number of input and output dimensions)
|
boolean |
isSymmetric()
Returns true if a matrix is symmetric
|
boolean |
isUpperTriangular()
Returns true if a matrix is upper triangular
|
int |
rowCount()
Returns the number of rows in the matrix
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
Matrix |
toMatrix()
Coerces the matrix to the standard mutable Matrix type
in row major order.
|
void |
transformInPlace(AArrayVector v) |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
Matrix |
transposeInnerProduct(Matrix s) |
void |
transposeInPlace() |
void |
validate()
Validates the internal data structure of the INDArray.
|
abs, add, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asDoubleArray, asElementList, asVector, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, clamp, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, copyTo, dimensionality, divide, divide, elementCount, elementDiv, elementIterator, elementMul, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, exactClone, exp, fill, get, get, get, get, getColumn, getElements, getLeadingDiagonal, getLongShape, getMatrixComponent, getRow, getShape, getShape, getSlices, getSliceViews, getTransposeCopy, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isElementConstrained, isHermitian, isInvertible, isOrthogonal, isPositiveDefinite, isView, isZero, iterator, log, mul, multiply, multiply, multiplyRow, negate, nonZeroCount, 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, toMatrixTranspose, toMutableMatrix, toString, toVector, trace, transform, transposeInnerProduct, unsafeGet, unsafeSetgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic boolean isSquare()
ATransformpublic boolean isSymmetric()
AMatrixisSymmetric in class AMatrixpublic boolean isDiagonal()
AMatrixisDiagonal in class AMatrixpublic boolean isRectangularDiagonal()
isRectangularDiagonal in class AMatrixpublic boolean isUpperTriangular()
AMatrixisUpperTriangular in class AMatrixpublic boolean isLowerTriangular()
AMatrixisLowerTriangular in class AMatrixpublic abstract boolean isMutable()
INDArraypublic boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArrayisFullyMutable in class AMatrixpublic double determinant()
AMatrixdeterminant in class AMatrixpublic int dimensions()
public void copyRowTo(int row,
double[] dest,
int destOffset)
public void copyColumnTo(int col,
double[] dest,
int destOffset)
copyColumnTo in class AMatrixpublic AMatrix innerProduct(ADiagonalMatrix a)
public AMatrix innerProduct(AMatrix a)
innerProduct in class AMatrixpublic Matrix innerProduct(Matrix a)
innerProduct in class AMatrixpublic Matrix transposeInnerProduct(Matrix s)
transposeInnerProduct in class AMatrixpublic void transformInPlace(AVector v)
ATransformtransformInPlace in class AMatrixpublic void transformInPlace(AArrayVector v)
transformInPlace in class AMatrixpublic int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic boolean isIdentity()
ATransformisIdentity in class AMatrixpublic boolean isBoolean()
INDArraypublic void transposeInPlace()
transposeInPlace in class AMatrixpublic double calculateElement(int i,
AVector v)
ATransformcalculateElement in class AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic double getDiagonalValue(int i)
public ADiagonalMatrix getTranspose()
AMatrixgetTranspose in interface INDArraygetTranspose in class AMatrixpublic ADiagonalMatrix getTransposeView()
INDArraygetTransposeView in interface INDArraygetTransposeView in class AMatrixpublic double density()
ISparsepublic Matrix toMatrix()
AMatrixpublic void validate()
INDArrayCopyright © 2013. All Rights Reserved.