public class SpecializedOps_ZDRM
extends java.lang.Object
Constructor and Description |
---|
SpecializedOps_ZDRM() |
Modifier and Type | Method and Description |
---|---|
static org.ejml.data.ZMatrixRMaj |
createReflector(org.ejml.data.ZMatrixRMaj u)
Creates a reflector from the provided vector.
Q = I - γ u uT γ = 2/||u||2 |
static org.ejml.data.ZMatrixRMaj |
createReflector(org.ejml.data.ZMatrixRMaj u,
double gamma)
Creates a reflector from the provided vector and gamma.
Q = I - γ u uH |
static double |
elementDiagMaxMagnitude2(org.ejml.data.ZMatrixRMaj a)
Returns the magnitude squared of the complex element along the diagonal with the largest magnitude
Max{ |aij|^2 } for all i and j |
static org.ejml.data.ZMatrixRMaj |
householder(org.ejml.data.ZMatrixRMaj u,
double gamma)
Q = I - gamma*u*uH
|
static org.ejml.data.ZMatrixRMaj |
householderVector(org.ejml.data.ZMatrixRMaj x)
Computes the householder vector used in QR decomposition.
|
static org.ejml.data.ZMatrixRMaj |
pivotMatrix(org.ejml.data.ZMatrixRMaj ret,
int[] pivots,
int numPivots,
boolean transposed)
Creates a pivot matrix that exchanges the rows in a matrix:
A' = P*A |
static double |
qualityTriangular(org.ejml.data.ZMatrixRMaj T)
Computes the quality of a triangular matrix, where the quality of a matrix
is defined in
LinearSolver.quality() . |
public static org.ejml.data.ZMatrixRMaj createReflector(org.ejml.data.ZMatrixRMaj u)
Creates a reflector from the provided vector.
Q = I - γ u uT
γ = 2/||u||2
u
- A vector. Not modified.public static org.ejml.data.ZMatrixRMaj createReflector(org.ejml.data.ZMatrixRMaj u, double gamma)
Creates a reflector from the provided vector and gamma.
Q = I - γ u uH
u
- A vector. Not modified.gamma
- To produce a reflector gamma needs to be equal to 2/||u||.public static org.ejml.data.ZMatrixRMaj pivotMatrix(org.ejml.data.ZMatrixRMaj ret, int[] pivots, int numPivots, boolean transposed)
Creates a pivot matrix that exchanges the rows in a matrix:
A' = P*A
For example, if element 0 in 'pivots' is 2 then the first row in A' will be the 3rd row in A.
ret
- If null then a new matrix is declared otherwise the results are written to it. Is modified.pivots
- Specifies the new order of rows in a matrix.numPivots
- How many elements in pivots are being used.transposed
- If the transpose of the matrix is returned.public static double elementDiagMaxMagnitude2(org.ejml.data.ZMatrixRMaj a)
Returns the magnitude squared of the complex element along the diagonal with the largest magnitude
Max{ |aij|^2 } for all i and j
a
- A matrix. Not modified.public static double qualityTriangular(org.ejml.data.ZMatrixRMaj T)
LinearSolver.quality()
. In
this situation the quality is the magnitude of the product of
each diagonal element divided by the magnitude of the largest diagonal element.
If all diagonal elements are zero then zero is returned.public static org.ejml.data.ZMatrixRMaj householder(org.ejml.data.ZMatrixRMaj u, double gamma)
public static org.ejml.data.ZMatrixRMaj householderVector(org.ejml.data.ZMatrixRMaj x)
x
- Input vector. Unmodified.