NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ distance_norm2() [10/12]

template<typename T >
T cntr::distance_norm2 ( herm_matrix_timestep_view< T > &  g1,
herm_matrix_timestep< T > &  g2 
)

Definition at line 1748 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().

1748  {
1749  assert(g1.size1() == g2.size1());
1750  assert(g1.ntau() == g2.ntau());
1751  assert(g1.tstp() == g2.tstp());
1752  herm_matrix_timestep_view<T> g2_view(g1.tstp(), g2);
1753  if (g1.size1() == 1)
1754  return distance_norm2_dispatch<T, 1>(g1.tstp(), g1, g2_view);
1755  else
1756  return distance_norm2_dispatch<T, LARGESIZE>(g1.tstp(), g1, g2_view);
1757 }
+ Here is the call graph for this function: