delpi  0.0.1
DElta-complete LP solver
Loading...
Searching...
No Matches
delpi::qsopt_ex Namespace Reference

Namespace containing all the utility functions to interact with the QSopt_ex solver. More...

Classes

class  MpqArray
 A wrapper around an array of mpq_t elements. More...

Functions

mpq_class * StringToMpqPtr (const std::string &str)
 Convert a string to a mpq_class.
mpq_class StringToMpq (const std::string &str)
 Convert a string to a mpq_class.
mpq_class * CStringToMpqPtr (const char str[])
 Convert a C-string to a mpq_class.
mpq_class CStringToMpq (const char str[])
 Convert a string to a mpq_class.

Detailed Description

Namespace containing all the utility functions to interact with the QSopt_ex solver.

Author
Ernesto Casablanca (casab.nosp@m.lanc.nosp@m.aerne.nosp@m.sto@.nosp@m.gmail.nosp@m..com)
Author
Ernesto Casablanca (casab.nosp@m.lanc.nosp@m.aerne.nosp@m.sto@.nosp@m.gmail.nosp@m..com)

Function Documentation

◆ CStringToMpq()

mpq_class delpi::qsopt_ex::CStringToMpq ( const char str[])

Convert a string to a mpq_class.

Parameters
strC-string representation of a rational number
Returns
mpq_class object

Definition at line 25 of file qsopt_ex.cpp.

◆ CStringToMpqPtr()

mpq_class * delpi::qsopt_ex::CStringToMpqPtr ( const char str[])

Convert a C-string to a mpq_class.

Parameters
strC-string representation of a rational number
Returns
pointer to a dynamically allocated mpq_class. Must be freed with delete.
Warning
The caller is responsible for freeing the returned pointer.

Definition at line 17 of file qsopt_ex.cpp.

◆ StringToMpq()

mpq_class delpi::qsopt_ex::StringToMpq ( const std::string & str)

Convert a string to a mpq_class.

Parameters
strstring representation of a rational number
Returns
mpq_class object

Definition at line 16 of file qsopt_ex.cpp.

◆ StringToMpqPtr()

mpq_class * delpi::qsopt_ex::StringToMpqPtr ( const std::string & str)

Convert a string to a mpq_class.

Parameters
strstring representation of a rational number
Returns
pointer to a dynamically allocated mpq_class. Must be freed with delete.
Warning
The caller is responsible for freeing the returned pointer.

Definition at line 15 of file qsopt_ex.cpp.