Skip to content

num::spectral::dst1

Defined in header <spectral/dst.hpp>

vec<real> dst1(const vec<real> &x);

Compute the discrete sine transform (DST-I): \(X_k = \sum_{j=1}^N x_j \sin(j k \pi / (N + 1))\). Unnormalized.

Notes

\(N + 1\) must be a power of two.