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

Contains the interface of various IO interop with NumPy. More...

#include <Eigen/Dense>
#include "cnpy/cnpy.h"
Include dependency graph for npy.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  obsidian::io::NpzWriter
 Used for writing to an NPZ file. More...
 

Namespaces

 obsidian
 
 obsidian::io
 

Functions

Eigen::MatrixXd obsidian::io::readNPY (const std::string &filename)
 Read from an NPY file containing a single floating point matrix. More...
 
Eigen::MatrixXi obsidian::io::readNPYi (const std::string &filename)
 Read from an NPY file containing a single integer matrix. More...
 
Eigen::MatrixXcd obsidian::io::readNPYc (const std::string &filename)
 Read from an NPY file containing a single complex matrix. More...
 
Eigen::MatrixXd obsidian::io::readNPZ (const std::string &filename, const std::string &key)
 Read from a specific key of an NPZ file containing a single floating point matrix. More...
 
void obsidian::io::writeNPY (const std::string &filename, const Eigen::MatrixXd &matrix)
 
void obsidian::io::writeNPZ (const std::string &filename, const std::map< std::string, Eigen::MatrixXd > &mats, bool overwrite)
 

Detailed Description

Contains the interface of various IO interop with NumPy.

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