Flow123d  release_3.0.0-1141-g4222d07
Functions
armadillo_tools.hh File Reference
#include <string>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void armadillo_setup ()
 
template<class T >
std::string field_value_to_yaml (const T &mat, unsigned int prec=5)
 

Function Documentation

void armadillo_setup ( )

This method sets particular ostream to armadillo which catch errors reported by Armadillo and report Flow error message with full stacktrace. This allows better determination of the source of the error.

The call to the function may appear in the main() or in particular unit tests.

Definition at line 66 of file armadillo_tools.cc.

Here is the caller graph for this function:

template<class T >
std::string field_value_to_yaml ( const T &  mat,
unsigned int  prec = 5 
)
inline

Format field_value (i.e. matrix, vector scalar of double or int) into YAML string.

Definition at line 138 of file armadillo_tools.cc.

Here is the caller graph for this function: