Example usage for org.apache.commons.math.linear CholeskyDecomposition getDeterminant

List of usage examples for org.apache.commons.math.linear CholeskyDecomposition getDeterminant

Introduction

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

Prototype

double getDeterminant();

Source Link

Document

Return the determinant of the matrix

Usage

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

/**
 * Constructor.// w  w  w  .  j  a v  a 2  s . co m
 * @param ch The result of the Cholesky decomposition.
 */
public CholeskyDecompositionCommonsResult(final CholeskyDecomposition ch) {
    Validate.notNull(ch, "Cholesky decomposition");
    _determinant = ch.getDeterminant();
    _l = CommonsMathWrapper.unwrap(ch.getL());
    _lt = CommonsMathWrapper.unwrap(ch.getLT());
    _solver = ch.getSolver();
}