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 |
extractSubSymmetricMatrix(int[] index)
Extract a sub-part of the matrix providing a subset of indices.
|
SymmetricMatrix |
getInverse()
Get the inverse of the decomposed matrix.
|
SymmetricMatrix |
getInverse(Function<RealMatrix,Decomposition> decompositionBuilder)
Get the inverse matrix computed with the given decomposition algorithm.
|
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 toTranspose)
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, concatenateHorizontally, concatenateVertically, concatenateVertically, copySubMatrix, copySubMatrix, copySubMatrix, copySubMatrix, createMatrix, equals, getColumn, getColumnMatrix, getColumnVector, getData, getData, getDefaultDecomposition, getEntry, getFrobeniusNorm, getMax, getMin, getNorm, getRow, getRowMatrix, getRowVector, getSubMatrix, getSubMatrix, getTrace, isAntisymmetric, isDiagonal, isInvertible, isOrthogonal, isPositiveDefinite, isSymmetric, isSymmetric, isSymmetric, multiply, multiply, multiply, multiplyEntry, operate, operate, preMultiply, preMultiply, preMultiply, setColumn, setColumnMatrix, setColumnVector, setDefaultDecomposition, setEntry, setRow, setRowMatrix, setRowVector, setSubMatrix, subtract, toString, transpose, 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 toTranspose)
m
- the matrix M or the matrix MTtoTranspose
- if true, assume the provided matrix is MT, otherwise assumes it is MSymmetricMatrix extractSubSymmetricMatrix(int[] index)
Usage example (with permutation): 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]
Usage example : 1 2 3 2 3 1 [lambda1, mu, gamma] 2 [lambda2, beta] 2 [ mu, lambda2, beta] --> {2,3} --> 3 [ beta, lambda3] 3 [ gamma, beta, lambda3]
index
- Index listSymmetricMatrix 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(Function)
method.getInverse
in interface RealMatrix
SingularMatrixException
- if the decomposed matrix is singular.SymmetricMatrix getInverse(Function<RealMatrix,Decomposition> decompositionBuilder)
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
decompositionBuilder
- decomposition function to useSingularMatrixException
- if the decomposed matrix is singular.Copyright © 2021 CNES. All rights reserved.