MPSolve 3.2.1
Loading...
Searching...
No Matches
input-output.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
16#ifndef MPS_INPUT_OUTPUT_H_
17#define MPS_INPUT_OUTPUT_H_
18
19MPS_BEGIN_DECLS
20
21void mps_readroots (mps_context * s);
23void mps_outroot (mps_context * s, int i, int num);
24void mps_output (mps_context * s);
26void mps_dump_status (mps_context * s, FILE * outstr);
27void mps_dump (mps_context * s);
28void mps_dump_cluster_structure (mps_context * s, FILE * outstr);
29mps_boolean mps_is_a_tty (FILE * stream);
30void mps_warn (mps_context * st, char *format, ...);
31void mps_error (mps_context * st, const char * format, ...);
33
34void mps_skip_comments (FILE * input_stream);
35void mps_raise_parsing_error (mps_context * s, mps_input_buffer * buffer,
36 const char * token,
37 const char * message, ...);
38mps_input_option mps_parse_option_line (mps_context * s, char *line, size_t length);
39
41
42mps_polynomial * mps_monomial_yacc_parser (mps_context * ctx, mps_abstract_input_stream * stream);
43
44
45MPS_END_DECLS
46
47#endif /* MPS_INPUT_OUTPUT_H_ */
48
struct mps_abstract_input_stream mps_abstract_input_stream
C wrapper around AbstractInputStream.
Definition: abstract-input-stream.h:32
mps_boolean mps_is_a_tty(FILE *stream)
Check if the file descriptor associated to stream is bounded to a tty.
Definition: input-output.c:599
void mps_outroot(mps_context *s, int i, int num)
Print an approximation to stdout (or whatever the output stream currently selected in the mps_context...
Definition: input-output.c:195
mps_input_option mps_parse_option_line(mps_context *s, char *line, size_t length)
Parse a line of the input stream that contains the character ';', so should be considered an option l...
Definition: parser.c:103
void mps_dump(mps_context *s)
Dump all the current approximation to the logstr selected in the current mps_context.
Definition: input-output.c:434
void mps_error(mps_context *st, const char *format,...)
Record an error happened during the computation. This will set the internal status error to on,...
Definition: input-output.c:623
MPS_BEGIN_DECLS void mps_readroots(mps_context *s)
Read the approximations from the file opened in the rtstr member of the mps_context.
Definition: input-output.c:41
mps_polynomial * mps_monomial_poly_read_from_stream_v2(mps_context *s, mps_input_buffer *buffer)
Parse the stream that has been loaded into buffer and that describe a mps_monomial_poly....
Definition: monomial-parser.c:257
void mps_dump_cluster_structure(mps_context *s, FILE *outstr)
Dump cluster structure to outstr.
Definition: input-output.c:503
void mps_print_errors(mps_context *s)
Print all the errors that have been recorded up to now. This function should be called only if mps_co...
Definition: input-output.c:654
void mps_output(mps_context *s)
Print the approximations to stdout (or whatever the output stream currently selected in the mps_conte...
Definition: input-output.c:325
void mps_copy_roots(mps_context *s)
Update the MP version of the roots to the latest and greatest approximations.
Definition: input-output.c:385
void mps_countroots(mps_context *s)
Count the roots that are included in the search set, excluded form it, or have an undetermined inclus...
Definition: input-output.c:68
void mps_warn(mps_context *st, char *format,...)
Print a warning to the user.
Definition: input-output.c:563
void mps_dump_status(mps_context *s, FILE *outstr)
Dump status of all the root approximations.
Definition: input-output.c:542
this struct holds the state of the mps computation
Definition: context.h:55
Buffer used to parse input files in MPSolve. It can read a stream line by line.
Definition: input-buffer.h:33
This struct holds a key and the value associated with it. It's used for options that require a value ...
Definition: options.h:110
Struct that represents an abstract polynomial. All the other real polynomial implementations (such as...
Definition: polynomial.h:111