NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ distance_norm2_tv() [1/9]

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

Evaluate the Euclidean norm between the left-mixing components of two herm_matrces at a given time step.

Purpose

Evaluate the Euclidean norm between the left-mixing components of two herm_matrces ( \(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 1047 of file cntr_utilities_impl.hpp.

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

1047  {
1048  assert(g1.size1() == g2.size1());
1049  assert(g1.ntau() == g2.ntau());
1050  assert(g1.nt() >= tstp);
1051  assert(g2.nt() >= tstp);
1052  if (g1.size1() == 1)
1053  return distance_norm2_tv_dispatch<T, herm_matrix<T>, 1>(tstp, g1, g2);
1054  else
1055  return distance_norm2_tv_dispatch<T, herm_matrix<T>, LARGESIZE>(
1056  tstp, g1, g2);
1057 }
+ Here is the call graph for this function: