NuTo
Numerics Tool
Static Public Member Functions | List of all members
NuTo::EigenIO Class Reference

Collection of helper functions for Eigen matrices. More...

#include <EigenIO.h>

Static Public Member Functions

static void WriteToFile (const Eigen::MatrixXd &rMatrix, const std::string &rFileName, std::string rDelimiter=" ")
 writes a matrix to a file More...
 
static Eigen::MatrixXd ReadFromFile (const std::string &rFileName)
 reads a matrix from a file More...
 

Detailed Description

Collection of helper functions for Eigen matrices.

Member Function Documentation

Eigen::MatrixXd EigenIO::ReadFromFile ( const std::string &  rFileName)
static

reads a matrix from a file

Parameters
rFileNamefile name
Returns
matrix
void EigenIO::WriteToFile ( const Eigen::MatrixXd &  rMatrix,
const std::string &  rFileName,
std::string  rDelimiter = " " 
)
static

writes a matrix to a file

Parameters
rMatrixmatrix
rFileNamefile name
rDelimiterdelimiters between the entries in each line, default = space

The documentation for this class was generated from the following files: