NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ distance_norm2_les() [1/9]

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

Evaluate the Euclidean norm between the lesser components of two herm_matrces at a given time step.

Purpose

Evaluate the Euclidean norm between the lesser 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 1332 of file cntr_utilities_impl.hpp.

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

1332  {
1333  assert(g1.size1() == g2.size1());
1334  assert(g1.ntau() == g2.ntau());
1335  assert(g1.nt() >= tstp);
1336  assert(g2.nt() >= tstp);
1337  if (g1.size1() == 1)
1338  return distance_norm2_les_dispatch<T, herm_matrix<T>, 1>(tstp, g1,
1339  g2);
1340  else
1341  return distance_norm2_les_dispatch<T, herm_matrix<T>, LARGESIZE>(
1342  tstp, g1, g2);
1343 }
+ Here is the call graph for this function: