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
|
AMatrix |
compose(ADiagonalMatrix a) |
AMatrix |
compose(AMatrix a) |
static DiagonalMatrix |
create(double... values) |
double |
determinant()
Calculates the determinant of the matrix.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
double |
getDiagonalValue(int i) |
AVector |
getLeadingDiagonal()
Returns a new vector that contains the leading diagonal values of the matrix
|
DiagonalMatrix |
inverse()
Return the inverse of this transformation if possible
|
boolean |
isIdentity()
Returns true if this transform is the identity function, i.e.
|
void |
scale(double factor)
Scales a matrix by a constant scalar factor.
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
static DiagonalMatrix |
wrap(double[] data) |
columnCount, dimensions, isFullyMutable, isSquare, rowCount, transposeInPlaceadd, addMultiple, asVector, cloneRow, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, dimensionality, elementSum, entrywiseMul, epsilonEquals, equals, equals, equals, get, getColumn, getMatrixComponent, getRow, getTranspose, hashCode, inputDimensions, isInvertible, isZeroMatrix, iterator, mul, outputDimensions, reshape, set, sub, swapColumns, swapRows, toAffineTransform, toMutableMatrix, toString, toVector, transformgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic static DiagonalMatrix create(double... values)
public static DiagonalMatrix wrap(double[] data)
public double get(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixset in interface IMatrixset in class ADiagonalMatrixpublic void scale(double factor)
AMatrixpublic double calculateElement(int i,
AVector v)
ATransformcalculateElement in class ADiagonalMatrixpublic void transformInPlace(AVector v)
ATransformtransformInPlace 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 AVector getLeadingDiagonal()
AMatrixgetLeadingDiagonal in class AMatrixpublic AMatrix compose(ADiagonalMatrix a)
Copyright © 2013. All Rights Reserved.