![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Functions | |
| void | loadMatrixFromFile (la::SparseMatrix &result, const std::string &filename) |
| Load a PETSc matrix from a binary file and copy it into a SparseMatrix. | |
| void | loadVectorFromFile (la::Vector &result, const std::string &filename) |
| Load a PETSc vector from a binary file and copy it into a Vector. | |
| Eigen::MatrixXd | readCSVToEigenMatrix (const std::string &filename, char delimiter=',') |
| Eigen::VectorXd | readCSVToEigenVector (const std::string &filename, char delimiter=',') |
|
inline |
Load a PETSc matrix from a binary file and copy it into a SparseMatrix.
| result | The SparseMatrix to load the data into |
| filename | The path to the binary file containing the matrix data |
|
inline |
Load a PETSc vector from a binary file and copy it into a Vector.
| result | The Vector to load the data into |
| filename | The path to the binary file containing the vector data |
|
inline |
Reads a CSV file containing a dense matrix and returns an Eigen::MatrixXd.
| filename | Path to the CSV file to read |
| delimiter | Character that separates values in the CSV file (default is comma) |
| std::runtime_error | if the file cannot be opened or has inconsistent row lengths |
|
inline |
Reads a CSV file containing a dense vector and returns an Eigen::VectorXd.
| filename | Path to the CSV file to read |
| delimiter | Character that separates values in the CSV file (default is comma) |
| std::runtime_error | if the file cannot be opened or contains invalid data |