#include "include/utils.hpp"
#include <string>
#include <map>
#include <algorithm>
#include <iostream>
#include <fstream>
#include "include/linalg.hpp"
#include "include/error.hpp"
#include <boost/shared_ptr.hpp>
#include "include/ddm.hpp"
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. | |
template bool | utils::contains (const std::set< linalg::point > &, linalg::point E) |
template bool | utils::contains (const std::map< linalg::point, linalg::vector > &m, linalg::point thing) |
template bool | utils::includes (const std::set< linalg::point > &s1, const std::set< linalg::point > &s2) |
template bool | utils::contains (const std::map< linalg::point, shared_ptr< const bvp::overlapping_domain > > &, linalg::point) |
template bool | utils::contains (const std::set< shared_ptr< const bvp::overlapping_domain > > &, shared_ptr< const bvp::overlapping_domain > E) |