Template Function libwalrus::recursive_chunk

Function Documentation

template<typename T>
T libwalrus::recursive_chunk(std::vector<T> b, int s, int w, std::vector<T> g, int n)

Recursive hafnian solver.

Modified with permission from https://github.com/eklotek/Hafnian.

This function uses OpenMP (if available) to parallelize the reduction.

Return

the hafnian

Parameters
  • b:

  • s:

  • w:

  • g:

  • n: