Template Function libwalrus::hermite_multidimensional_cpp

Function Documentation

template<typename T>
T *libwalrus::hermite_multidimensional_cpp(const std::vector<T> &R, const std::vector<T> &y, const int &cutoff)

Returns the multidimensional Hermite polynomials \(H_k^{(R)}(y)\).

This implementation is based on the MATLAB code available at https://github.com/clementsw/gaussian-optics

Parameters
  • R: a flattened vector of size \(n^2\), representing a \(n\times n\) symmetric matrix.

  • y: a flattened vector of size \(n\).

  • cutoff: highest number of photons to be resolved.