NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ distance_norm2() [4/12]

template<typename T >
T cntr::distance_norm2 ( int  tstp,
herm_matrix_timestep< T > &  g1,
herm_matrix_timestep< T > &  g2 

Evaluate the Euclidean norm between a herm_matrix_timestep and herm_matrix_timestep at a given time step.


Evaluate the Euclidean norm between of a herm_matrix_timestep \(g_1\) and a herm_matrix_timestep ( \(g_2\)) at a given time step (tstp). To evaluate the norm, the elements of retarded, lesser and left-mixing components at the time step is used. The norm is not normalized per elements, but it is the summention of all the elements.


time step





Definition at line 1718 of file cntr_utilities_impl.hpp.

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

1718  {
1719  assert(g1.size1() == g2.size1());
1720  assert(g1.ntau() == g2.ntau());
1721  assert(g1.tstp() == tstp);
1722  assert(g2.tstp() == tstp);
1723  herm_matrix_timestep_view<T> g1_view(tstp, g1);
1724  herm_matrix_timestep_view<T> g2_view(tstp, g2);
1725  if (g1.size1() == 1)
1726  return distance_norm2_dispatch<T, 1>(tstp, g1_view, g2_view);
1727  else
1728  return distance_norm2_dispatch<T, LARGESIZE>(tstp, g1_view, g2_view);
1729 }
+ Here is the call graph for this function: