#include <string>
#include <map>
#include <set>
#include "linalg.hpp"
Go to the source code of this file.
Namespaces | |
namespace | utils |
Functions | |
std::string | utils::trim (const std::string &s) |
Clears whitespace from front and back of string s. | |
template<typename K, typename V> | |
bool | utils::contains (const std::map< K, V > &m, K thing) |
Does map m contain thing? | |
template<typename E> | |
bool | utils::contains (const std::set< E > &s, E thing) |
Does set s contain thing? | |
template<typename E> | |
bool | utils::includes (const std::set< E > &s1, const std::set< E > &s2) |
Does set s1 include set s2? | |
linalg::matrix | utils::read_matrix (std::string filename) |
Reads matrices from filenames. | |
linalg::vector | utils::read_vector (std::string filename) |
Reads vectors from filenames. | |
std::map< linalg::point, double > | utils::read_pd_map (std::string filename) |
Reads map<point,double> from a matrix. | |
void | utils::show_exception (error_handling::error exc) |
Outputs some information about generic exceptions. |