NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ distance_norm2_tv() [7/9]

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

Evaluate the Euclidean norm between the left-mixing components a herm_matrix_timestep and herm_matrix_timestep_view at a given time step.

Purpose

Evaluate the Euclidean norm between the left-mixing components of a herm_matrix_timestep \(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

g2

herm_matrix_timestep_view

Definition at line 1238 of file cntr_utilities_impl.hpp.

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

1238  {
1239  assert(g1.size1() == g2.size1());
1240  assert(g1.ntau() == g2.ntau());
1241  assert(g1.tstp() == tstp);
1242  assert(g2.tstp() == tstp);
1243  herm_matrix_timestep_view<T> g1_view(tstp, g1);
1244  if (g1.size1() == 1)
1245  return distance_norm2_tv_dispatch<T, 1>(tstp, g1_view, g2);
1246  else
1247  return distance_norm2_tv_dispatch<T, LARGESIZE>(tstp, g1_view, g2);
1248 }
+ Here is the call graph for this function: