hex.gram
Class Gram.Cholesky
java.lang.Object
hex.gram.Gram.Cholesky
- Enclosing class:
- Gram
public static final class Gram.Cholesky
- extends java.lang.Object
Field Summary |
protected double[] |
_diag
|
protected double[][] |
_xx
|
Method Summary |
boolean |
isSPD()
|
void |
setSPD(boolean b)
|
void |
solve(double[] y)
Find solution to A*x = y. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_xx
protected final double[][] _xx
_diag
protected final double[] _diag
Gram.Cholesky
public Gram.Cholesky(Gram gram)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
solve
public final void solve(double[] y)
- Find solution to A*x = y.
Result is stored in the y input vector. May throw NonSPDMatrix exception in case Gram is not
positive definite.
- Parameters:
y
-
isSPD
public final boolean isSPD()
setSPD
public final void setSPD(boolean b)