arb_mat_dct
Synopsis
#include <flint/arb_mat.h>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).
@misc{flint-doc-arb-mat-arb-mat-dct,
author = {{The FLINT team}},
title = {{arb\_mat\_dct (arb\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arb_mat/arb_mat_dct.html},
note = {Generated 2026-10-20}
}