124const static short int mps_rational_structures[] = { 0, 1, 0, 0, 0, 1, 0, 0, 0 };
125const static short int mps_integer_structures[] = { 1, 0, 0, 0, 1, 0, 0, 0, 0 };
126const static short int mps_fp_structures[] = { 0, 0, 1, 0, 0, 0, 1, 0, 0 };
127const static short int mps_real_structures[] = { 1, 1, 1, 1, 0, 0, 0, 0, 0 };
128const static short int mps_complex_structures[] = { 0, 0, 0, 0, 1, 1, 1, 1, 0 };
129const static short int mps_bigfloat_structures[] = { 0, 0, 0, 1, 0, 0, 0, 1, 0 };
132#define MPS_STRUCTURE_IS_RATIONAL(x) (mps_rational_structures[(x)])
133#define MPS_STRUCTURE_IS_INTEGER(x) (mps_integer_structures[(x)])
134#define MPS_STRUCTURE_IS_FP(x) (mps_fp_structures[(x)])
135#define MPS_STRUCTURE_IS_REAL(x) (mps_real_structures[(x)])
136#define MPS_STRUCTURE_IS_COMPLEX(x) (mps_complex_structures[(x)])
139const static short int mps_user_representations[] = { 0, 0, 1 };
140const static short int mps_sparse_representations[] = { 0, 1, 0 };
141const static short int mps_dense_representations[] = { 1, 0, 0 };
143#define MPS_DENSITY_IS_SPARSE(x) (mps_sparse_representations[(x)])
144#define MPS_DENSITY_IS_DENSE(x) (mps_dense_representations[(x)])
163#define MPS_OUTPUT_PROPERTY_NONE (0x00)
164#define MPS_OUTPUT_PROPERTY_REAL (0x01)
165#define MPS_OUTPUT_PROPERTY_IMAGINARY (0x01 << 1)
224void mps_parse_opts (
mps_context * s,
int argc,
char *argv[]);
226 const char *opt_format);
mps_boolean mps_getopts(mps_opt **opt, int *argc_ptr, char ***argv_ptr, const char *opt_format)
Parse command line options in a similar way of getopts.
Definition: getopts.c:52
Configuration for a command line parser.
Definition: options.h:65
mps_list * command_options
A list of mps_command_option instances that have been provided for this parser configuration.
Definition: options.h:70
This struct holds a configuration for a command line option. This is a step towards a more flexible i...
Definition: options.h:28
mps_boolean mandatory
If this value is true then the argument for the option is mandatory. Note that this value should be t...
Definition: options.h:50
char * long_format
An optional long format for the option, or NULL if no long format is specified.
Definition: options.h:56
mps_boolean argument
This value is true if an argument may be specified for the option.
Definition: options.h:44
char format
This is the character that is recognized as starting the option specification on the command line.
Definition: options.h:36
this struct holds the state of the mps computation
Definition: context.h:55
Struct holding the options passed on the command line.
Definition: options.h:97
Configuration for the output.
Definition: options.h:174
mps_search_set search_set
The set in which the roots must be searched.
Definition: options.h:195
mps_output_goal goal
Condition to be reached to return the computed approximations.
Definition: options.h:184
mps_boolean multiplicity
True if the mulitplicity check is enabled in MPSolve.
Definition: options.h:190
long int prec
Digits of required output precision.
Definition: options.h:178
mps_output_format format
Desired output format.
Definition: options.h:220
char root_properties
These flags are used to determined which properties of the roots must be determined by MPSolve.
Definition: options.h:205