| Constructor and Description |
|---|
DiagonalMatrix(double... values) |
DiagonalMatrix(int dimensions) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateComponent(int i,
AVector v)
Calculates a single component of the output.
|
DiagonalMatrix |
clone()
Clones the transform, performing a deep copy where needed
|
int |
columnCount()
Returns the number of columns in the matrix
|
double |
determinant()
Calculates the determinant of the matrix.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
AVector |
getLeadingDiagonal()
Returns a new vector that contains the leading diagonal values of the matrix
|
boolean |
isFullyMutable() |
boolean |
isIdentity()
Returns true if this transform is the identity function, i.e.
|
boolean |
isSquare() |
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, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, entrywiseMul, epsilonEquals, equals, equals, equals, getColumn, getMatrixComponent, getRow, getTranslationComponent, getTranspose, hashCode, inputDimensions, inverse, isZeroMatrix, mul, outputDimensions, set, swapColumns, swapRows, toAffineTransform, toMutableMatrix, toString, toVector, transformcomposeisLineartakeComponents, takeComponents, takeComponents, transformpublic DiagonalMatrix(int dimensions)
public DiagonalMatrix(double... values)
public int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic double get(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic double calculateComponent(int i,
AVector v)
ATransformcalculateComponent in class AMatrixpublic void transformInPlace(AVector v)
ATransformtransformInPlace in class AMatrixpublic boolean isFullyMutable()
isFullyMutable in class AMatrixpublic boolean isIdentity()
ATransformisIdentity in class AMatrixpublic DiagonalMatrix clone()
ATransformpublic double determinant()
AMatrixdeterminant in class AMatrixpublic AVector getLeadingDiagonal()
AMatrixgetLeadingDiagonal in class AMatrixpublic void transposeInPlace()
transposeInPlace in class AMatrixCopyright © 2012. All Rights Reserved.