public interface SymmetricMatrix extends RealMatrix
Modifier and Type | Method and Description |
---|---|
SymmetricMatrix |
add(SymmetricMatrix m)
Adds a
SymmetricMatrix to this matrix. |
SymmetricMatrix |
copy()
Returns a (deep) copy of this.
|
SymmetricMatrix |
getInverse()
Get the inverse of the decomposed matrix.
|
SymmetricMatrix |
getInverse(Decomposition decomposition)
Get the inverse matrix computed with the given decomposition algorithm.
|
SymmetricMatrix |
permutation(int[] index)
Permute the rows/columns of this matrix according to a new specified index order list.
|
SymmetricMatrix |
power(int p)
Returns the result of multiplying
this with itself p times. |
SymmetricMatrix |
quadraticMultiplication(RealMatrix m)
Gets the result of the quadratic multiplication M×S×MT, where S is
this matrix and M is the provided matrix.
|
SymmetricMatrix |
quadraticMultiplication(RealMatrix m,
boolean isTranspose)
Gets the result of the quadratic multiplication M×S×MT, where S is
this matrix and M or MT is the provided matrix.
|
SymmetricMatrix |
scalarAdd(double d)
Adds a scalar to each entry of this matrix.
|
SymmetricMatrix |
scalarMultiply(double d)
Multiplies each entry of this matrix by a scalar.
|
SymmetricMatrix |
subtract(SymmetricMatrix m)
Subtracts a
SymmetricMatrix from this matrix. |
SymmetricMatrix |
transpose()
Returns the transpose of this matrix.
|
add, addToEntry, concatenateDiagonally, concatenateHorizontally, concatenateVertically, copySubMatrix, copySubMatrix, createMatrix, equals, getColumn, getColumnMatrix, getColumnVector, getData, getDefaultDecomposition, getEntry, getFrobeniusNorm, getNorm, getRow, getRowMatrix, getRowVector, getSubMatrix, getSubMatrix, getTrace, isAntisymmetric, isDiagonal, isInvertible, isOrthogonal, isSymmetric, isSymmetric, isSymmetric, multiply, multiply, multiply, multiplyEntry, operate, operate, preMultiply, preMultiply, preMultiply, setColumn, setColumnMatrix, setColumnVector, setDefaultDecomposition, setEntry, setRow, setRowMatrix, setRowVector, setSubMatrix, subtract, toString, walkInColumnOrder, walkInColumnOrder, walkInColumnOrder, walkInColumnOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInRowOrder, walkInRowOrder, walkInRowOrder, walkInRowOrder
getColumnDimension, getRowDimension, isSquare
SymmetricMatrix scalarMultiply(double d)
scalarMultiply
in interface RealMatrix
d
- the scalar by which each entry is multipliedSymmetricMatrix scalarAdd(double d)
scalarAdd
in interface RealMatrix
d
- the scalar to add to each entrySymmetricMatrix add(SymmetricMatrix m)
SymmetricMatrix
to this matrix.m
- the matrix to addSymmetricMatrix subtract(SymmetricMatrix m)
SymmetricMatrix
from this matrix.m
- the matrix to subtractSymmetricMatrix quadraticMultiplication(RealMatrix m)
m
- the matrix MSymmetricMatrix quadraticMultiplication(RealMatrix m, boolean isTranspose)
m
- the matrix M or the matrix MTisTranspose
- if true, assume the provided matrix is MT, otherwise assumes it is MSymmetricMatrix permutation(int[] index)
The index list must be the same dimension as the matrix and each index must be represented.
Usage example : 1 2 3 2 3 1 1 [lambda1, mu, gamma] 2 [lambda2, beta, mu] 2 [ mu, lambda2, beta] --> {2,3,1} --> 3 [ beta, lambda3, gamma] 3 [ gamma, beta, lambda3] 1 [ mu, gamma, lambda1]
index
- Index list of the expected permutationSymmetricMatrix copy()
copy
in interface RealMatrix
SymmetricMatrix transpose()
transpose
in interface RealMatrix
SymmetricMatrix power(int p)
this
with itself p
times. Depending on the underlying storage,
instability for high powers
might occur.power
in interface RealMatrix
p
- raise this
to power p
this^p
SymmetricMatrix getInverse()
setDefaultDecomposition(Decomposition)
method.getInverse
in interface RealMatrix
SingularMatrixException
- if the decomposed matrix is singular.SymmetricMatrix getInverse(Decomposition decomposition)
Warning: If a matrix has already been given to the decomposition, it won't be taken into account, as a
new computation will be run on this
matrix and will erase the old decomposition data.
getInverse
in interface RealMatrix
decomposition
- decomposed matrixSingularMatrixException
- if the decomposed matrix is singular.Copyright © 2021 CNES. All rights reserved.