Examples of fireTerminationEvent()


Examples of org.apache.commons.math3.util.IterationManager.fireTerminationEvent()

                                                      x,
                                                      b,
                                                      state.getNormOfResidual());
        if (state.bEqualsNullVector()) {
            /* If b = 0 exactly, stop with x = 0. */
            manager.fireTerminationEvent(event);
            return x;
        }
        /* Cause termination if beta is essentially zero. */
        final boolean earlyStop;
        earlyStop = state.betaEqualsZero() || state.hasConverged();
View Full Code Here

Examples of org.apache.commons.math3.util.IterationManager.fireTerminationEvent()

        event = new DefaultIterativeLinearSolverEvent(this,
                                                      manager.getIterations(),
                                                      x,
                                                      b,
                                                      state.getNormOfResidual());
        manager.fireTerminationEvent(event);
        return x;
    }

    /**
     * {@inheritDoc}
 
View Full Code Here

Examples of org.apache.commons.math3.util.IterationManager.fireTerminationEvent()

        final State state = new State(a, minv, b, x, goodb, shift);
        final IterativeLinearSolverEvent event = new SymmLQEvent(this, state);
        if (state.beta1 == 0.) {
            /* If b = 0 exactly, stop with x = 0. */
            manager.fireTerminationEvent(event);
            return x;
        }
        /* Cause termination if beta is essentially zero. */
        final boolean earlyStop;
        earlyStop = (state.beta < MACH_PREC) || (state.hasConverged);
View Full Code Here

Examples of org.apache.commons.math3.util.IterationManager.fireTerminationEvent()

         * so further calls to state.refine() (via event.getSolution()) should
         * *not* return an altered value of state.x.
         */
        state.bstep = 0.;
        state.gammaZeta = 0.;
        manager.fireTerminationEvent(event);
        return x;
    }

    /**
     * {@inheritDoc}
 
View Full Code Here

Examples of org.apache.commons.math3.util.IterationManager.fireTerminationEvent()

        IterativeLinearSolverEvent evt;
        evt = new DefaultIterativeLinearSolverEvent(this,
            manager.getIterations(), xro, bro, rro, rnorm);
        manager.fireInitializationEvent(evt);
        if (rnorm <= rmax) {
            manager.fireTerminationEvent(evt);
            return x;
        }
        double rhoPrev = 0.;
        while (true) {
            manager.incrementIterationCount();
View Full Code Here

Examples of org.apache.commons.math3.util.IterationManager.fireTerminationEvent()

            rnorm = r.getNorm();
            evt = new DefaultIterativeLinearSolverEvent(this,
                manager.getIterations(), xro, bro, rro, rnorm);
            manager.fireIterationPerformedEvent(evt);
            if (rnorm <= rmax) {
                manager.fireTerminationEvent(evt);
                return x;
            }
        }
    }
}
View Full Code Here

Examples of org.apache.commons.math3.util.IterationManager.fireTerminationEvent()

                                                      x,
                                                      b,
                                                      state.getNormOfResidual());
        if (state.bEqualsNullVector()) {
            /* If b = 0 exactly, stop with x = 0. */
            manager.fireTerminationEvent(event);
            return x;
        }
        /* Cause termination if beta is essentially zero. */
        final boolean earlyStop;
        earlyStop = state.betaEqualsZero() || state.hasConverged();
View Full Code Here

Examples of org.apache.commons.math3.util.IterationManager.fireTerminationEvent()

        event = new DefaultIterativeLinearSolverEvent(this,
                                                      manager.getIterations(),
                                                      x,
                                                      b,
                                                      state.getNormOfResidual());
        manager.fireTerminationEvent(event);
        return x;
    }

    /**
     * {@inheritDoc}
 
View Full Code Here

Examples of org.apache.commons.math3.util.IterationManager.fireTerminationEvent()

        IterativeLinearSolverEvent evt;
        evt = new DefaultIterativeLinearSolverEvent(this,
            manager.getIterations(), xro, bro, rro, rnorm);
        manager.fireInitializationEvent(evt);
        if (rnorm <= rmax) {
            manager.fireTerminationEvent(evt);
            return x;
        }
        double rhoPrev = 0.;
        while (true) {
            manager.incrementIterationCount();
View Full Code Here

Examples of org.apache.commons.math3.util.IterationManager.fireTerminationEvent()

            rnorm = r.getNorm();
            evt = new DefaultIterativeLinearSolverEvent(this,
                manager.getIterations(), xro, bro, rro, rnorm);
            manager.fireIterationPerformedEvent(evt);
            if (rnorm <= rmax) {
                manager.fireTerminationEvent(evt);
                return x;
            }
        }
    }
}
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.