#include <polyfem/Common.hpp>
#include <polyfem/utils/Types.hpp>
#include <Eigen/Dense>
#include <Eigen/Sparse>
Go to the source code of this file.
|
template<typename T > |
bool | polyfem::io::read_matrix (const std::string &path, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &mat) |
| Reads a matrix from a file. Determines the file format based on the path's extension.
|
|
template<typename Mat > |
bool | polyfem::io::write_matrix (const std::string &path, const Mat &mat) |
| Writes a matrix to a file. Determines the file format based on the path's extension.
|
|
template<typename Mat > |
bool | polyfem::io::write_matrix (const std::string &path, const std::string &key, const Mat &mat, const bool replace=true) |
| Writes a matrix to a hdf5 file using key as name.
|
|
template<typename Mat > |
bool | polyfem::io::read_matrix (const std::string &path, const std::string &key, Mat &mat) |
| Reads a matrix to a hdf5 file using key as name.
|
|
template<typename T > |
bool | polyfem::io::read_matrix_ascii (const std::string &path, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &mat) |
|
template<typename Mat > |
bool | polyfem::io::write_matrix_ascii (const std::string &path, const Mat &mat) |
|
template<typename T > |
bool | polyfem::io::read_matrix_binary (const std::string &path, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &mat) |
|
template<typename Mat > |
bool | polyfem::io::write_matrix_binary (const std::string &path, const Mat &mat) |
|
bool | polyfem::io::write_sparse_matrix_csv (const std::string &path, const Eigen::SparseMatrix< double > &mat) |
|
template<typename T > |
bool | polyfem::io::import_matrix (const std::string &path, const json &import, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &mat) |
|