3#ifndef LOG_PLAQUETTE_ACTION_H_
4#define LOG_PLAQUETTE_ACTION_H_
11template <
typename group,
typename atype = hila::arithmetic_type<group>>
15 U[dir2].start_gather(dir1,
ALL);
16 U[dir1].start_gather(dir2,
ALL);
21 C[X] =
log((U[dir1][X] * U[dir2][X + dir1] * (U[dir2][X] * U[dir1][X + dir2]).
dagger()))
26template <
typename group>
34 get_log_plaq_mat(U, dir1, dir2, C);
39 return stot.
value() / group::size();
42template <
typename group,
typename atype = hila::arithmetic_type<group>>
50 get_log_plaq_mat(U, dir1, dir2, C);
53 std::vector<Direction> path = {dir1, dir2, -dir1, -dir2};
66 get_wloop_force_from_wl_add(U, path, C, eps, K);
70template <
typename group,
typename atype = hila::arithmetic_type<group>>
77 get_force_log_plaq_add(U, K, eps);
Array< n, m, T > log(Array< n, m, T > a)
Logarithm.
The field class implements the standard methods for accessing Fields. Hilapp replaces the parity acce...
double squarenorm() const
Squarenorm.
Special reduction class: enables delayed and non-blocking reductions, which are not possible with the...
const T value()
Return value of the reduction variable. Wait for the comms if needed.
Reduction & allreduce(bool b=true)
allreduce(bool) turns allreduce on or off. By default on.
Reduction & delayed(bool b=true)
deferred(bool) turns deferred on or off. By default turns on.
Complex< T > dagger(const Complex< T > &val)
Return dagger of Complex number.
#define foralldir(d)
Macro to loop over (all) Direction(s)
Direction
Enumerator for direction that assigns integer to direction to be interpreted as unit vector.
constexpr Parity ALL
bit pattern: 011