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

Generic parsers for common polynomial types. More...

Go to the source code of this file.

Functions

MPS_BEGIN_DECLS mps_polynomialmps_parse_stream (mps_context *s, FILE *input_stream)
 
mps_polynomialmps_parse_file (mps_context *s, const char *path)
 
mps_polynomialmps_parse_string (mps_context *s, const char *c_string)
 
mps_polynomialmps_parse_inline_poly (mps_context *ctx, FILE *stream)
 Parse a polynomial described the "usual" way, i.e., written as a_k x^k + a_{k-1} x^{k-1} + ... + a_0. More...
 
mps_polynomialmps_parse_inline_poly_from_string (mps_context *ctx, const char *input)
 Parse a polynomial described the "usual" way, i.e., written as a_k x^k + a_{k-1} x^{k-1} + ... + a_0. More...
 

Detailed Description

Generic parsers for common polynomial types.

Function Documentation

◆ mps_parse_inline_poly()

mps_polynomial * mps_parse_inline_poly ( mps_context ctx,
FILE *  handle 
)

Parse a polynomial described the "usual" way, i.e., written as a_k x^k + a_{k-1} x^{k-1} + ... + a_0.

Parameters
ctxThe current mps_context.
handleA FILE* handle from which the polynomial should be read.

◆ mps_parse_inline_poly_from_string()

mps_polynomial * mps_parse_inline_poly_from_string ( mps_context ctx,
const char *  input 
)

Parse a polynomial described the "usual" way, i.e., written as a_k x^k + a_{k-1} x^{k-1} + ... + a_0.

Parameters
ctxThe current mps_context.
handleA string from which the polynomial should be read.