Skip to content

num::transform_plan

Defined in header <spectral/concepts.hpp>

template <class P, class V = vec<cplx>>
concept transform_plan =
    inner_product_space<V> && requires(const P &plan, const V &in, V &out) {
      { plan.size() } -> std::convertible_to<int>;
      plan.execute(in, out);
    };

Prepared transform of fixed length: \(X_k = \sum_n x_n e^{-2\pi i k n / N}\).