org.jblas
Class Decompose
java.lang.Object
org.jblas.Decompose
public class Decompose
- extends Object
Matrix which collects all kinds of decompositions.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Decompose
public Decompose()
lu
public static Decompose.LUDecomposition<DoubleMatrix> lu(DoubleMatrix A)
- Compute LU Decomposition of a general matrix.
Computes the LU decomposition using GETRF. Returns three matrices L, U, P,
where L is lower diagonal, U is upper diagonal, and P is a permutation
matrix such that A = P * L * U.
- Parameters:
A - general matrix
- Returns:
- An LUDecomposition object.
cholesky
public static DoubleMatrix cholesky(DoubleMatrix A)
- Compute Cholesky decomposition of A
- Parameters:
A - symmetric, positive definite matrix (only upper half is used)
- Returns:
- upper triangular matrix U such that A = U' * U
Copyright © 2012. All Rights Reserved.