Commit 4e34d609 authored by gbalduzz's avatar gbalduzz
Browse files

added and fixed flop computation of all modes.

parent 81d9e2a9
Loading
Loading
Loading
Loading
+15 −4
Original line number Diff line number Diff line
@@ -426,6 +426,17 @@ float updateG4(std::complex<Real>* G4, const std::complex<Real>* G_up, const int

  const std::size_t n_updates = size_12 * size_12 * size_3;
  switch (type) {
      // Note: sign flips  are ignored and a single complex * real multiplication is
      // present in all modes.
    case PARTICLE_HOLE_TRANSVERSE:
      // Each update of a G4 entry involves 2 complex additions and 3 complex multiplications.
      return 20. * n_updates;
    case PARTICLE_HOLE_MAGNETIC:
      // Each update of a G4 entry involves 3 complex additions and 3 complex multiplications.
      return 26. * n_updates;
    case PARTICLE_HOLE_CHARGE:
      // Each update of a G4 entry involves 3 complex additions and 3 complex multiplications.
      return 26. * n_updates;
    case PARTICLE_PARTICLE_UP_DOWN:
      // Each update of a G4 entry involves 3 complex additions and 2 complex multiplications.
      return 20. * n_updates;