FLINT3.7.0-dev

arb_mat_dct

Synopsis#include <flint/arb_mat.h>
void arb_mat_dct(arb_mat_t mat, int type, slong prec)source

Sets mat to the orthogonal DCT-II matrix of order n, the smaller dimension of mat,

A_{j,k} = \sqrt{\frac{2 - \delta_{j,0}}{n}} \cos\left(\frac{\pi j}{n} \left(k + \frac{1}{2}\right)\right),

which satisfies A^{-1} = A^T (if mat is not square, the formula is used for all entries). type is ignored and should be 0.

Cite this page

The FLINT team, “arb_mat_dct (arb_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arb_mat/arb_mat_dct.html (generated 2026-10-20).