Package edu.ucla.sspace.matrix

Examples of edu.ucla.sspace.matrix.DiagonalMatrix


           
            int rows = sigma.rows();
            double[] sigmaInv = new double[rows];
            for (int i = 0; i < rows; ++i)
                sigmaInv[i] = 1d / sigma.get(i, i);
            DiagonalMatrix sigmaInvMatrix = new DiagonalMatrix(sigmaInv);

            UtimesSigmaInv =
                Matrices.multiply(U, sigmaInvMatrix);
            // Update the field with the new reference to the precomputed matrix
            UtimesSigmaInvRef = new WeakReference<Matrix>(UtimesSigmaInv);
View Full Code Here


    public Matrix getSingularValues() {
        if (singularValues == null)
            throw new IllegalStateException(
                "The matrix has not been factorized yet");
        // NOTE: make this read-only?
        return new DiagonalMatrix(singularValues);
    }
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.matrix.DiagonalMatrix

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.