Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
io.hpp File Reference
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
#include <Eigen/Dense>
#include "vulpes/la/sparse_matrix.hpp"
#include "vulpes/la/vector.hpp"
Include dependency graph for io.hpp:

Go to the source code of this file.

Namespaces

namespace  vulpes
namespace  vulpes::io

Functions

void vulpes::io::loadMatrixFromFile (la::SparseMatrix &result, const std::string &filename)
 Load a PETSc matrix from a binary file and copy it into a SparseMatrix.
void vulpes::io::loadVectorFromFile (la::Vector &result, const std::string &filename)
 Load a PETSc vector from a binary file and copy it into a Vector.
Eigen::MatrixXd vulpes::io::readCSVToEigenMatrix (const std::string &filename, char delimiter=',')
Eigen::VectorXd vulpes::io::readCSVToEigenVector (const std::string &filename, char delimiter=',')