Skip to content
Snippets Groups Projects

Backup and restore facilities

Merged Praetorius, Simon requested to merge feature/backup_restore into master
All threads resolved!
Files
14
@@ -255,6 +255,10 @@ namespace Dune
/// Dot-product with the vector itself
template <class T,
std::enable_if_t<Dune::IsNumber<T>::value, int> = 0>
auto unary_dot(T const& x);
template <class T, int N>
auto unary_dot(FieldVector<T, N> const& x);
@@ -303,6 +307,10 @@ namespace Dune
/** \ingroup vector_norms
* \brief The euklidean 2-norm of a vector = sqrt( sum_i |x_i|^2 )
**/
template <class T,
std::enable_if_t<Dune::IsNumber<T>::value, int> = 0>
auto two_norm(T const& x);
template <class T, int N>
auto two_norm(FieldVector<T, N> const& x);
@@ -330,6 +338,10 @@ namespace Dune
// ----------------------------------------------------------------------------
/// The euklidean distance between two vectors = |lhs-rhs|_2
template <class T,
std::enable_if_t<Dune::IsNumber<T>::value, int> = 0>
T distance(T const& lhs, T const& rhs);
template <class T, int N>
T distance(FieldVector<T, N> const& lhs, FieldVector<T, N> const& rhs);
Loading