NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ distance_norm2_les() [9/9]

template<typename T >
T cntr::distance_norm2_les ( int  tstp,
herm_matrix_timestep_view< T > &  g1,
herm_matrix_timestep_view< T > &  g2 
)

Evaluate the Euclidean norm between the lesser components a herm_matrix_timestep_view and herm_matrix_timestep_view at a given time step.

Purpose

Evaluate the Euclidean norm between the lesser components of a herm_matrix_timestep_view \(g_1\) and a herm_matrix_timestep_view ( \(g_2\)) at a given time step (tstp). The norm is not normalized per elements, but it is the summention of all the elements.

Parameters
tstp

time step

g1

herm_matrix_timestep_view

g2

herm_matrix_timestep_view

Definition at line 1588 of file cntr_utilities_impl.hpp.

References cntr::herm_matrix_timestep_view< T >::ntau(), cntr::herm_matrix_timestep_view< T >::size1(), and cntr::herm_matrix_timestep_view< T >::tstp().

1588  {
1589  assert(g1.size1() == g2.size1());
1590  assert(g1.ntau() == g2.ntau());
1591  assert(g1.tstp() == tstp);
1592  assert(g2.tstp() == tstp);
1593  if (g1.size1() == 1)
1594  return distance_norm2_les_dispatch<T, 1>(tstp, g1, g2);
1595  else
1596  return distance_norm2_les_dispatch<T, LARGESIZE>(tstp, g1, g2);
1597 }
+ Here is the call graph for this function: