MPSolve 3.2.1
Loading...
Searching...
No Matches
algorithms.h File Reference

This file contains the entry points of the various algorithms implemented in MPSolve. More...

Go to the source code of this file.

Functions

MPS_BEGIN_DECLS void mps_standard_mpsolve (mps_context *s)
 Main routine of the program that implements the algorithm in the standard polynomial version. More...
 
void mps_secular_ga_mpsolve (mps_context *s)
 MPSolve main function for the secular equation solving using Gemignani's approach. More...
 

Detailed Description

This file contains the entry points of the various algorithms implemented in MPSolve.

Function Documentation

◆ mps_secular_ga_mpsolve()

void mps_secular_ga_mpsolve ( mps_context s)

MPSolve main function for the secular equation solving using Gemignani's approach.

Parameters
sThe mps_context of the computation.

◆ mps_standard_mpsolve()

MPS_BEGIN_DECLS void mps_standard_mpsolve ( mps_context s)

Main routine of the program that implements the algorithm in the standard polynomial version.

The program is divided into many parts

  • Check the correctness of data, scale coefficients if needed, and select cases: the variable which_case is 'f' or 'd' according to float or dpe case.
  • Call msolve or dsolve according to the value of which_case.
  • Allocate MP variables mfpc, mroot, drad (if needed).
  • Start MPsolve loop
    • prepare data according to the current precision and to the data_type (density/sparsity/user)
    • Call msolve with the current precision
  • check for termination