#include "armadillo_tools.hh"
#include <type_traits>
#include "system/exc_common.hh"
#include "system/logger.hh"
#include <armadillo>
Go to the source code of this file.
#define FIELD_VALUE_TO_YAML_DIM |
( |
|
dim | ) |
|
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.
template<class T >
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.
template string field_value_to_yaml |
( |
const arma::Col< double > & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
template string field_value_to_yaml |
( |
const arma::Col< unsigned int > & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
template string field_value_to_yaml |
( |
const double & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
template string field_value_to_yaml |
( |
const int & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
template string field_value_to_yaml |
( |
const unsigned int & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
FIELD_VALUE_TO_YAML_DIM |
( |
2 |
| ) |
|
FIELD_VALUE_TO_YAML_DIM |
( |
3 |
| ) |
|
template<class T >
string field_value_to_yaml_matrix |
( |
const T & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
template<class T >
string field_value_to_yaml_vector |
( |
const T & |
vec, |
|
|
unsigned int |
prec |
|
) |
| |