public abstract class ADiagonalMatrix extends AMatrix
| 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
|
double |
determinant()
Calculates the determinant of the matrix.
|
int |
dimensions()
Returns the number of dimensions of this diagonal matrix
|
double |
getDiagonalValue(int i) |
boolean |
isFullyMutable() |
boolean |
isIdentity()
Returns true if this transform is the identity function, i.e.
|
boolean |
isSquare()
Returns true if the transform is square (same number of input and output dimensions)
|
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
|
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
void |
transposeInPlace() |
add, addMultiple, asVector, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, dimensionality, elementSum, entrywiseMul, epsilonEquals, equals, equals, equals, get, get, getColumn, getLeadingDiagonal, getMatrixComponent, getRow, getTranspose, hashCode, inputDimensions, inverse, isInvertible, isZeroMatrix, iterator, mul, outputDimensions, reshape, scale, set, sub, swapColumns, swapRows, toAffineTransform, toMutableMatrix, toString, toVector, transformgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic boolean isSquare()
ATransformpublic boolean isFullyMutable()
isFullyMutable in class AMatrixpublic double determinant()
AMatrixdeterminant in class AMatrixpublic int dimensions()
public void transformInPlace(AVector v)
ATransformtransformInPlace in class AMatrixpublic int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic boolean isIdentity()
ATransformisIdentity in class AMatrixpublic 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)
Copyright © 2013. All Rights Reserved.