Example usage for org.apache.commons.math.linear LUDecomposition getL

List of usage examples for org.apache.commons.math.linear LUDecomposition getL

Introduction

In this page you can find the example usage for org.apache.commons.math.linear LUDecomposition getL.

Prototype

RealMatrix getL();

Source Link

Document

Returns the matrix L of the decomposition.

Usage

From source file:com.opengamma.analytics.math.linearalgebra.LUDecompositionCommonsResult.java

/**
 * @param lu The result of the LU decomposition, not null. $\mathbf{L}$ cannot be singular.
 *///  w  ww  .  j  a va  2  s  .com
public LUDecompositionCommonsResult(final LUDecomposition lu) {
    Validate.notNull(lu, "LU decomposition");
    Validate.notNull(lu.getL(), "Matrix is singular; could not perform LU decomposition");
    _determinant = lu.getDeterminant();
    _l = CommonsMathWrapper.unwrap(lu.getL());
    _p = CommonsMathWrapper.unwrap(lu.getP());
    _pivot = lu.getPivot();
    _solver = lu.getSolver();
    _u = CommonsMathWrapper.unwrap(lu.getU());
}