Obsidian
Probabilistic Geophysical Joint Inversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
common.hpp File Reference

Common header files included by all the input implementations. Contains helper functions. More...

#include "input.hpp"
#include "io/npy.hpp"
#include "io/string.hpp"
#include "io/csv.hpp"
#include <Eigen/Core>
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 obsidian
 

Functions

void Eigen::validate (boost::any &v, const std::vector< std::string > &values, Eigen::Vector2d *, int)
 for reading from boost::program_options
 
void Eigen::validate (boost::any &v, const std::vector< std::string > &values, Eigen::Vector3i *, int)
 for reading from boost::program_options
 
void Eigen::validate (boost::any &v, const std::vector< std::string > &values, Eigen::Vector3d *, int)
 for reading from boost::program_options
 
void Eigen::validate (boost::any &v, const std::vector< std::string > &values, Eigen::VectorXd *, int)
 for reading from boost::program_options
 
template<typename T , int C, int Offset>
Eigen::Matrix< T,
Eigen::Dynamic, Eigen::Dynamic > 
obsidian::readFixed (const std::vector< std::vector< std::string >> &data)
 for reading a rectangular portion of list of list of fields as a Matrix
 
template<typename T >
void obsidian::writeFixed (std::vector< std::vector< std::string >> &data, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &obj)
 for writing a matrix into a list of list of fields
 
template<typename T , int Offset>
std::vector< Eigen::Matrix< T,
Eigen::Dynamic, 1 > > 
obsidian::readRagged (std::vector< std::vector< std::string >> &data)
 for reading a ragged array (vector of matrix) from a list of list of fields
 
template<typename T >
void obsidian::writeRagged (std::vector< std::vector< std::string >> &data, std::vector< Eigen::Matrix< T, Eigen::Dynamic, 1 >> &obj)
 for wtiting a ragged array (vector of matrix) into a list of list of fields
 
po::variables_map obsidian::build_vm (po::variables_map vm, const po::options_description &od, const std::string &topic, const std::map< std::string, std::string > &map)
 helper method for building boost::program_options::variable_map
 

Detailed Description

Common header files included by all the input implementations. Contains helper functions.

Author
Lachlan McCalman
Nahid Akbar
Date
2014
License:
General Public License version 3 or later