MPSolve
3.2.2
Toggle main menu visibility
Loading...
Searching...
No Matches
data.h
Go to the documentation of this file.
1
/*
2
* This file is part of MPSolve 3.2.2
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
17
18
#ifndef MPS_DATA_H_
19
#define MPS_DATA_H_
20
21
#include <
mps/mps.h
>
22
23
MPS_BEGIN_DECLS
24
25
/* functions in data.c */
26
void
mps_mp_set_prec
(
mps_context
* s,
long
int
prec);
27
void
mps_allocate_data
(
mps_context
* s);
28
void
mps_prepare_data
(
mps_context
* s,
long
int
prec);
29
void
mps_restore_data
(
mps_context
* s);
30
void
mps_free_data
(
mps_context
* s);
31
long
int
mps_raise_data
(
mps_context
* s,
long
int
prec);
32
void
mps_raise_data_raw
(
mps_context
* s,
long
int
prec);
33
34
/* functions in main.c */
35
void
mps_setup
(
mps_context
* s);
36
void
mps_check_data
(
mps_context
* s,
char
*which_case);
37
void
mps_compute_sep
(
mps_context
* s);
38
39
MPS_END_DECLS
40
41
#endif
/* endif _MPS_DATA_H */
mps_allocate_data
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
mps_raise_data
long int mps_raise_data(mps_context *s, long int prec)
Raise precision performing a real computation of the data.
Definition
data.c:105
mps_prepare_data
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
mps_compute_sep
void mps_compute_sep(mps_context *s)
Compute the minimum distance that can separate two roots of the input polynomial.
Definition
main.c:602
mps_raise_data_raw
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_mp_set_prec
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
mps_setup
void mps_setup(mps_context *s)
Setup vectors and variables.
Definition
main.c:296
mps_check_data
void mps_check_data(mps_context *s, char *which_case)
Check consistency of data and makes some basic adjustments.
Definition
main.c:460
mps_free_data
void mps_free_data(mps_context *s)
Free all the data allocated with mps_allocate_data().
Definition
data.c:228
mps_restore_data
void mps_restore_data(mps_context *s)
Resets the data to the highest used precision.
Definition
data.c:207
mps.h
Header file for libmps.
mps_context
this struct holds the state of the mps computation
Definition
context.h:60
include
mps
private
data.h
Generated on
for MPSolve by
1.17.0