List of usage examples for org.apache.commons.math.linear CholeskyDecompositionImpl getL
public RealMatrix getL()
From source file:edu.cudenver.bios.matrixsvc.representation.CholeskyDecompositionXmlRepresentation.java
static Element createXml(CholeskyDecompositionImpl _cdImpl, Document _doc) { NamedRealMatrix L = new NamedRealMatrix(_cdImpl.getL()); NamedRealMatrix LT = new NamedRealMatrix(_cdImpl.getLT()); L.setName(MatrixConstants.SQ_ROOT_MATRIX_RETURN_NAME); LT.setName(MatrixConstants.TRANSPOSE_MATRIX_RETURN_NAME); Element rootElem = _doc.createElement(MatrixConstants.TAG_CHOLESKY_DECOMP); //Get XML for first matrix logger.debug("Calling MatrixXmlRepresentation.createMatrixNodeFromRealMatrix() " + "for L matrix."); Node matrixL = MatrixXmlRepresentation.createMatrixNodeFromRealMatrix(L, _doc); //Get XML for second matrix logger.debug("Calling MatrixXmlRepresentation.createMatrixNodeFromRealMatrix() " + "for LT matrix."); Node matrixLT = MatrixXmlRepresentation.createMatrixNodeFromRealMatrix(LT, _doc); //Add our matrices to our root element rootElem.appendChild(matrixL);/* ww w. j av a 2 s .co m*/ rootElem.appendChild(matrixLT); return rootElem; }