| Constructor and Description |
|---|
DiagonalMatrix(double... values) |
DiagonalMatrix(int dimensions) |
| Modifier and Type | Method and Description |
|---|---|
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() |
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, mul, outputDimensions, set, swapColumns, swapRows, toAffineTransform, toMutableMatrix, toString, toVector, transformcomposeisLineartransformpublic 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 void transformInPlace(AVector v)
ATransformtransformInPlace in class AMatrixpublic boolean isFullyMutable()
isFullyMutable in class AMatrixpublic boolean isIdentity()
isIdentity 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.