Examples of SymmetricQRAlgorithmDecomposition


Examples of mikera.matrixx.decompose.impl.eigen.SymmetricQRAlgorithmDecomposition

     * @param A The input matrix. It must be a square symmetric matrix.
     * @param computeVectors Should it compute the eigenvectors or just eigenvalues.
     * @return an IEigenResult object that represents the solution to the decomposition.
     */
    public static IEigenResult decomposeSymmetric(AMatrix A, boolean computeVectors) {
        SymmetricQRAlgorithmDecomposition alg = new SymmetricQRAlgorithmDecomposition(computeVectors);
        return alg.decompose(A);
    }
View Full Code Here

Examples of org.ejml.alg.dense.decomposition.eig.SymmetricQRAlgorithmDecomposition

     */
    public static EigenDecomposition<DenseMatrix64F> eig( int matrixSize , boolean computeVectors ,
                                                          boolean isSymmetric ) {
        if( isSymmetric ) {
            TridiagonalSimilarDecomposition<DenseMatrix64F> decomp = DecompositionFactory.tridiagonal(matrixSize);
            return new SymmetricQRAlgorithmDecomposition(decomp,computeVectors);
        } else
            return new WatchedDoubleStepQRDecomposition(computeVectors);
    }
View Full Code Here

Examples of org.ejml.alg.dense.decomposition.eig.SymmetricQRAlgorithmDecomposition

    }

    private static void runAlgorithms( DenseMatrix64F mat  )
    {
        TridiagonalSimilarDecomposition<DenseMatrix64F> decomp = DecompositionFactory.tridiagonal(0);
        System.out.println("qr ult           = "+ evaluate(new SymmetricQRAlgorithmDecomposition(decomp,true),mat));
    }
View Full Code Here

Examples of org.ejml.alg.dense.decomposition.eig.SymmetricQRAlgorithmDecomposition

    public static long symmTogether( DenseMatrix64F orig , int numTrials ) {

        long prev = System.currentTimeMillis();

        TridiagonalSimilarDecomposition<DenseMatrix64F> decomp =  DecompositionFactory.tridiagonal(orig.numRows);
        SymmetricQRAlgorithmDecomposition alg = new SymmetricQRAlgorithmDecomposition(decomp,true);

        alg.setComputeVectorsWithValues(true);

        for( long i = 0; i < numTrials; i++ ) {
            if( !DecompositionFactory.decomposeSafe(alg,orig) ) {
                throw new RuntimeException("Bad matrix");
            }
View Full Code Here

Examples of org.ejml.alg.dense.decomposition.eig.SymmetricQRAlgorithmDecomposition

    public static long symmSeparate( DenseMatrix64F orig , int numTrials ) {

        long prev = System.currentTimeMillis();

        TridiagonalSimilarDecomposition<DenseMatrix64F> decomp =  DecompositionFactory.tridiagonal(orig.numRows);
        SymmetricQRAlgorithmDecomposition alg = new SymmetricQRAlgorithmDecomposition(decomp,true);

        alg.setComputeVectorsWithValues(false);

        for( long i = 0; i < numTrials; i++ ) {
            if( !DecompositionFactory.decomposeSafe(alg,orig) ) {
                throw new RuntimeException("Bad matrix");
            }
View Full Code Here

Examples of org.ejml.alg.dense.decomposition.eig.SymmetricQRAlgorithmDecomposition

        return System.currentTimeMillis() - prev;
    }

    public static long standardTridiag( DenseMatrix64F orig , int numTrials ) {
        TridiagonalSimilarDecomposition<DenseMatrix64F> decomp = new TridiagonalDecompositionHouseholder();
        SymmetricQRAlgorithmDecomposition alg = new SymmetricQRAlgorithmDecomposition(decomp,true);

        long prev = System.currentTimeMillis();

        for( long i = 0; i < numTrials; i++ ) {
            if( !DecompositionFactory.decomposeSafe(alg,orig) ) {
View Full Code Here

Examples of org.ejml.alg.dense.decomposition.eig.SymmetricQRAlgorithmDecomposition

    }

    public static long blockTridiag( DenseMatrix64F orig , int numTrials ) {

        TridiagonalSimilarDecomposition<DenseMatrix64F> decomp = new TridiagonalDecompositionBlock();
        SymmetricQRAlgorithmDecomposition alg = new SymmetricQRAlgorithmDecomposition(decomp,true);

        long prev = System.currentTimeMillis();

        for( long i = 0; i < numTrials; i++ ) {
            if( !DecompositionFactory.decomposeSafe(alg,orig) ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.