NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ distance_norm2_ret() [1/9]

template<typename T >
T cntr::distance_norm2_ret ( int  tstp,
herm_matrix< T > &  g1,
herm_matrix< T > &  g2 
)

Evaluate the Euclidean norm between the retarded components of two herm_matrix at a given time step.

Purpose

Evaluate the Euclidean norm between the retarded components of two herm_matrix ( \(g_1,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

g2

herm_matrix

Definition at line 760 of file cntr_utilities_impl.hpp.

References cntr::herm_matrix< T >::nt(), cntr::herm_matrix< T >::ntau(), and cntr::herm_matrix< T >::size1().

760  {
761  assert(g1.size1() == g2.size1());
762  assert(g1.ntau() == g2.ntau());
763  assert(g1.nt() >= tstp);
764  assert(g2.nt() >= tstp);
765  if (g1.size1() == 1)
766  return distance_norm2_ret_dispatch<T, herm_matrix<T>, 1>(tstp, g1,
767  g2);
768  else
769  return distance_norm2_ret_dispatch<T, herm_matrix<T>, LARGESIZE>(
770  tstp, g1, g2);
771 }
+ Here is the call graph for this function: