NuTo
Numerics Tool
EigenIO.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <Eigen/Core>
5 
6 namespace NuTo
7 {
8 
10 class EigenIO
11 {
12 public:
17  static void WriteToFile(const Eigen::MatrixXd& rMatrix, const std::string& rFileName, std::string rDelimiter = " ");
18 
22  static Eigen::MatrixXd ReadFromFile(const std::string& rFileName);
23 };
24 } /* NuTo */
static Eigen::MatrixXd ReadFromFile(const std::string &rFileName)
reads a matrix from a file
Definition: EigenIO.cpp:51
Collection of helper functions for Eigen matrices.
Definition: EigenIO.h:10
Definition: Exception.h:6
static void WriteToFile(const Eigen::MatrixXd &rMatrix, const std::string &rFileName, std::string rDelimiter=" ")
writes a matrix to a file
Definition: EigenIO.cpp:30