#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.
◆ FIELD_VALUE_TO_YAML_DIM
#define FIELD_VALUE_TO_YAML_DIM |
( |
|
dim | ) |
|
◆ 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.
◆ field_value_to_yaml() [1/6]
template string field_value_to_yaml |
( |
const arma::Col< double > & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
◆ field_value_to_yaml() [2/6]
template string field_value_to_yaml |
( |
const arma::Col< unsigned int > & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
◆ field_value_to_yaml() [3/6]
template string field_value_to_yaml |
( |
const double & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
◆ field_value_to_yaml() [4/6]
template string field_value_to_yaml |
( |
const int & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
◆ field_value_to_yaml() [5/6]
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.
◆ field_value_to_yaml() [6/6]
template string field_value_to_yaml |
( |
const unsigned int & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
◆ field_value_to_yaml_matrix()
template<class T >
string field_value_to_yaml_matrix |
( |
const T & |
mat, |
|
|
unsigned int |
prec |
|
) |
| |
◆ field_value_to_yaml_vector()
template<class T >
string field_value_to_yaml_vector |
( |
const T & |
vec, |
|
|
unsigned int |
prec |
|
) |
| |