File utils.h

Defines

EIGEN_RUNTIME_NO_MALLOC
DIGITS_PRECISION

Typedefs

typedef boost::multiprecision::cpp_dec_float<DIGITS_PRECISION> mp_backend
typedef boost::multiprecision::number<mp_backend, boost::multiprecision::et_on> BoostDouble
typedef BoostDouble InterpolantDouble
typedef long double long_double
typedef double Double
typedef BoostDouble IPMDouble
typedef Eigen::Matrix<BoostDouble, Eigen::Dynamic, Eigen::Dynamic> BoostMatrix
typedef Eigen::Matrix<BoostDouble, Eigen::Dynamic, 1> BoostVector
typedef Eigen::Matrix<InterpolantDouble, Eigen::Dynamic, Eigen::Dynamic> InterpolantMatrix
typedef Eigen::Matrix<InterpolantDouble, Eigen::Dynamic, 1> InterpolantVector
typedef Eigen::Matrix<Double, Eigen::Dynamic, Eigen::Dynamic> DoubleMatrix
typedef Eigen::Matrix<Double, Eigen::Dynamic, 1> DoubleVector
template<typename T>
using Matrix = Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>
template<typename T>
using Vector = Eigen::Matrix<T, Eigen::Dynamic, 1>

Functions

template<typename T>
Vector<T> StackMatrixToVector(Matrix<T> M)
template<typename T>
Matrix<T> UnstackVectorToMatrix(Vector<T> v, unsigned matrix_dimension)
template<typename T>
std::vector<size_t> sort_indexes(const std::vector<T> &v)
std::string getEnvVar(std::string const &key)

Variables

template<typename T>
static OrthogonaPMatrixLibrary<T> orthogonal_P_Matrix_library
template<typename T>
class Solution

Public Functions

template<typename U>
inline Solution<U> cast()

Public Members

Vector<T> x
Vector<T> s
T centrality
T gap
template<typename T>
class Constraints

Public Functions

inline Constraints()
inline Constraints(Matrix<T> A_, Vector<T> b_, Vector<T> c_)
inline void print()
inline Constraints dual_system()

Public Members

Matrix<T> A
Vector<T> b
Vector<T> c
class DegreeTuple

Public Functions

inline DegreeTuple(const int num_vars, const unsigned max_degree_)
inline bool next()
inline bool valid()
inline bool next_valid()
inline std::vector<unsigned> &get_tuple()
inline void print_tuple()

Private Members

unsigned max_degree
std::vector<unsigned> v
class AllCombinationTuple

Public Functions

inline AllCombinationTuple(std::vector<unsigned> const bounds_)
inline bool next()
inline std::vector<unsigned> &get_combination()

Public Members

std::vector<unsigned> bounds
std::vector<unsigned> v
template<typename T>
class OrthogonaPMatrixLibrary

Public Functions

inline const Matrix<T> &get(int L, int U)

Get the \(\mathbf{U}\) matrix of degree N.

Private Functions

inline void build(int L, int U)

Private Members

std::map<std::pair<int, int>, Matrix<T>> matrices
template<typename _MatrixType, int _UpLo>
class CustomLLT : public Eigen::LLT<_MatrixType, _UpLo>

Public Types

typedef _MatrixType MatrixType
typedef MatrixType::Scalar Scalar

Public Functions

inline CustomLLT()
inline CustomLLT(unsigned int n)
inline void copy_and_scale(const CustomLLT<_MatrixType, _UpLo> &other, Scalar scalar)