MPSolve 3.2.1
Loading...
Searching...
No Matches
data.h
Go to the documentation of this file.
1/*
2 * This file is part of MPSolve 3.2.1
3 *
4 * Copyright (C) 2001-2020, Dipartimento di Matematica "L. Tonelli", Pisa.
5 * License: http://www.gnu.org/licenses/gpl.html GPL version 3 or higher
6 *
7 * Authors:
8 * Leonardo Robol <leonardo.robol@unipi.it>
9 */
10
18#ifndef MPS_DATA_H_
19#define MPS_DATA_H_
20
21#include <mps/mps.h>
22
23MPS_BEGIN_DECLS
24
25/* functions in data.c */
26void mps_mp_set_prec (mps_context * s, long int prec);
28void mps_prepare_data (mps_context * s, long int prec);
30void mps_free_data (mps_context * s);
31long int mps_raise_data (mps_context * s, long int prec);
32void mps_raise_data_raw (mps_context * s, long int prec);
33
34/* functions in main.c */
35void mps_setup (mps_context * s);
36void mps_check_data (mps_context * s, char *which_case);
38
39MPS_END_DECLS
40
41#endif /* endif _MPS_DATA_H */
void mps_allocate_data(mps_context *s)
Allocate all the data needed by MPSolve. Must be called after setting the degree of the polynomial (o...
Definition: data.c:43
long int mps_raise_data(mps_context *s, long int prec)
Raise precision performing a real computation of the data.
Definition: data.c:105
void mps_prepare_data(mps_context *s, long int prec)
Compute the mp_complex values of the coefficients of p(x) with the current precision of mpwds words,...
Definition: data.c:176
void mps_compute_sep(mps_context *s)
Compute the minimum distance that can separate two roots of the input polynomial.
Definition: main.c:602
void mps_raise_data_raw(mps_context *s, long int prec)
The same of mps_raise_data() but using raw routines of GMP, that will not change allocations.
Definition: data.c:134
MPS_BEGIN_DECLS void mps_mp_set_prec(mps_context *s, long int prec)
Globally set the current precision of mp variables.
Definition: data.c:24
void mps_setup(mps_context *s)
Setup vectors and variables.
Definition: main.c:296
void mps_check_data(mps_context *s, char *which_case)
Check consistency of data and makes some basic adjustments.
Definition: main.c:460
void mps_free_data(mps_context *s)
Free all the data allocated with mps_allocate_data()
Definition: data.c:228
void mps_restore_data(mps_context *s)
Resets the data to the highest used precision.
Definition: data.c:207
Header file for libmps.
this struct holds the state of the mps computation
Definition: context.h:55