Interior-point-optimisation  1.0-1
Interior-pointoptimisationlibrary
ipo::format Namespace Reference

Namespace for operations and constants that allow us to format numbers. More...

Functions

std::string subscript (size_t subscript)
 Create a string representing a subscript from a whole number. More...
 
std::string superscript (size_t superscript)
 Create a string representing a superscript from a whole number. More...
 

Variables

std::string const lessEqual { "≤" }
 Less than or equal sign, ≤. More...
 
std::string const greaterEqual { "≥" }
 Greater than or equal sign, ≥. More...
 
std::string const infinity { "∞" }
 Infinity sign, ∞. More...
 
std::string const minus { "−" }
 Minus sign, −. More...
 
std::string const times { "×" }
 Multiplication sign, ×. More...
 

Detailed Description

Namespace for operations and constants that allow us to format numbers.

Function Documentation

std::string ipo::format::subscript ( size_t  subscript)

Create a string representing a subscript from a whole number.

Parameters
subscriptThe number to be converted to a subscript
Returns
the number as a string of subscript digits

Definition at line 27 of file Format.cc.

std::string ipo::format::superscript ( size_t  superscript)

Create a string representing a superscript from a whole number.

Parameters
superscriptThe number to be converted to a superscript
Returns
the number as a string of superscript digits

Definition at line 40 of file Format.cc.

Variable Documentation

std::string const ipo::format::greaterEqual { "≥" }

Greater than or equal sign, ≥.

Definition at line 50 of file Format.hpp.

std::string const ipo::format::infinity { "∞" }
std::string const ipo::format::lessEqual { "≤" }

Less than or equal sign, ≤.

Definition at line 46 of file Format.hpp.

std::string const ipo::format::minus { "−" }

Minus sign, −.

Definition at line 58 of file Format.hpp.

std::string const ipo::format::times { "×" }

Multiplication sign, ×.

Definition at line 62 of file Format.hpp.