Package org.apache.spark.mllib.linalg
Class CholeskyDecomposition
Object
org.apache.spark.mllib.linalg.CholeskyDecomposition
Compute Cholesky decomposition.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic double[]inverse(double[] UAi, int k) Computes the inverse of a real symmetric positive definite matrix A using the Cholesky factorization A = U**T*U.static double[]solve(double[] A, double[] bx) Solves a symmetric positive definite linear system via Cholesky factorization.
- 
Constructor Details- 
CholeskyDecompositionpublic CholeskyDecomposition()
 
- 
- 
Method Details- 
solvepublic static double[] solve(double[] A, double[] bx) Solves a symmetric positive definite linear system via Cholesky factorization. The input arguments are modified in-place to store the factorization and the solution.- Parameters:
- A- the upper triangular part of A
- bx- right-hand side
- Returns:
- the solution array
 
- 
inversepublic static double[] inverse(double[] UAi, int k) Computes the inverse of a real symmetric positive definite matrix A using the Cholesky factorization A = U**T*U. The input arguments are modified in-place to store the inverse matrix.- Parameters:
- UAi- the upper triangular factor U from the Cholesky factorization A = U**T*U
- k- the dimension of A
- Returns:
- the upper triangle of the (symmetric) inverse of A
 
 
-