Calculates trace (sum of diagonal) of given kernel generator expression.
Definition at line 22 of file trace.hpp.