Flow123d  3.9.0-454df51df
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

◆ armadillo_setup()

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:

◆ field_value_to_yaml()

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: