MPSolve 3.2.1
Loading...
Searching...
No Matches
starting-configuration.h File Reference

Go to the source code of this file.

Classes

struct  mps_starting_configuration
 This struct holds the information about the starting disposal of the approximations that has been obtained by the computation of the Newton polygon of the polynomial. More...
 

Macros

#define MPS_STARTING_CONFIGURATION_INIT
 

Functions

void mps_starting_configuration_clear (mps_context *ctx, mps_starting_configuration *c)
 Clear all the storage that has been allocated inside a starting configuration. More...
 
mps_starting_configuration mps_fcompute_starting_radii (mps_context *s, int n, mps_cluster_item *cluster_item, double clust_rad, double g, rdpe_t eps, double fap[])
 Compute radii of the circles where the initial approximation will be disposed by mps_fstart() More...
 

Macro Definition Documentation

◆ MPS_STARTING_CONFIGURATION_INIT

#define MPS_STARTING_CONFIGURATION_INIT
Value:
{ \
.n_radii = 0, \
.fradii = NULL, \
.dradii = NULL, \
.partitioning = NULL \
}

Function Documentation

◆ mps_fcompute_starting_radii()

mps_starting_configuration mps_fcompute_starting_radii ( mps_context s,
int  n,
mps_cluster_item cluster_item,
double  clust_rad,
double  g,
rdpe_t  eps,
double  fap[] 
)

Compute radii of the circles where the initial approximation will be disposed by mps_fstart()

Parameters
smps_context* stuct pointer.
nnumber of roots in the cluster.
cluster_itemThe element of the mps_clusterization of which we are computing the starting points, or NULL if we are computing the starting points for all the approximations.
clust_radradius of the cluster.
gnew gravity center where the polynomial has been shifted.
epsout epsilon.
fap[]Array with the moduli of the coefficients.
Returns
A mps_starting_configuration containing the necessary information to dispose the initial approximations on the circles.
See also
mps_fstart()

◆ mps_starting_configuration_clear()

void mps_starting_configuration_clear ( mps_context ctx,
mps_starting_configuration c 
)

Clear all the storage that has been allocated inside a starting configuration.

Parameters
ctxThe current mps_context.
cThe mps_starting_configuration that should be cleared.