EPEC solve
Solving Equilibrium Problems with Equilibrium Constraints (EPECs)
Namespaces | Functions
utils.h File Reference
#include "epecsolve.h"
#include <armadillo>
#include <fstream>
#include <set>

Go to the source code of this file.

Namespaces

 Utils
 

Functions

arma::sp_mat Utils::resize_patch (const arma::sp_mat &Mat, const unsigned int nR, const unsigned int nC)
 
arma::mat Utils::resize_patch (const arma::mat &Mat, const unsigned int nR, const unsigned int nC)
 
arma::vec Utils::resize_patch (const arma::vec &Mat, const unsigned int nR)
 
void Utils::appendSave (const vec &matrix, const std::string out, const std::string header="", bool erase=false)
 
long int Utils::appendRead (vec &matrix, const std::string in, long int pos, const std::string header="")
 
void Utils::appendSave (const sp_mat &matrix, const std::string out, const std::string header="", bool erase=false)
 
long int Utils::appendRead (sp_mat &matrix, const std::string in, long int pos, const std::string header="")
 
void Utils::appendSave (const std::vector< double > v, const std::string out, const std::string header="", bool erase=false)
 
long int Utils::appendRead (std::vector< double > &v, const std::string in, long int pos, const std::string header="")
 
void Utils::appendSave (const std::string v, const std::string out, bool erase=false)
 
long int Utils::appendRead (std::string &v, const std::string in, long int pos)
 
void Utils::appendSave (const long int v, const std::string out, const std::string header="", bool erase=false)
 
long int Utils::appendRead (long int &v, const std::string in, long int pos, const std::string header="")
 
void Utils::appendSave (const unsigned int v, const std::string out, const std::string header="", bool erase=false)
 
long int Utils::appendRead (unsigned int &v, const std::string in, long int pos, const std::string header="")
 
unsigned long int Utils::vec_to_num (std::vector< short int > binary)
 
std::vector< short int > Utils::num_to_vec (unsigned long int number, const unsigned int &nCompl)
 

Detailed Description

Basic utilities

Definition in file utils.h.