|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.matrixtype.MatrixMathImpl<T>
com.numericalmethod.suanshu.matrix.doubles.matrixtype.MatrixStorageImpl<DenseMatrix>
com.numericalmethod.suanshu.matrix.doubles.matrixtype.dense.DenseMatrix
com.numericalmethod.suanshu.optimization.unconstrained.hessian.MatthewsDavies
public class MatthewsDavies
Matthews and Davies propose the following way to coerce a non-positive definite Hessian matrix to become positive definite.
The LDL decomposition is performed on the non-positive definite matrix. The zero and negative entries are then replaced by the smallest positive entry in the diagonal matrix.
| Constructor Summary | |
|---|---|
MatthewsDavies(Matrix H)
Construct a MatthewsDavies instance. |
|
| Method Summary | |
|---|---|
DiagonalMatrix |
D()
Get a copy of the diagonal matrix D in the LDL decomposition. |
DiagonalMatrix |
Dhat()
Get a copy of the modified diagonal matrix which is positive definite. |
LowerTriangularMatrix |
L()
Get a copy of the lower triangular matrix L in the LDL decomposition. |
UpperTriangularMatrix |
Lt()
Get the transpose of the lower triangular matrix L in the LDL decomposition. |
| Methods inherited from class com.numericalmethod.suanshu.matrix.doubles.matrixtype.dense.DenseMatrix |
|---|
add, deepCopy, getColumn, getColumn, getMatrixData, getRow, getRow, getSample, minus, multiply, multiply, ONE, overwrite, scaled, t, toDense, ZERO |
| Methods inherited from class com.numericalmethod.suanshu.matrix.doubles.matrixtype.MatrixStorageImpl |
|---|
equals, get, hashCode, set, setMatrixData |
| Methods inherited from class com.numericalmethod.suanshu.matrix.doubles.matrixtype.MatrixMathImpl |
|---|
add, call, minus, multiply, nCols, nRows, opposite, setColumn, setColumn, setRow, setRow, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MatthewsDavies(Matrix H)
D.
If all entries in D is < 0, D is replaced by an identity matrix.
H - a non-positive definite matrix| Method Detail |
|---|
public LowerTriangularMatrix L()
L in the LDL decomposition.
Lpublic UpperTriangularMatrix Lt()
L in the LDL decomposition.
The transpose is upper triangular.
Ltpublic DiagonalMatrix D()
D in the LDL decomposition.
Dpublic DiagonalMatrix Dhat()
D^
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||