FLINT3.7.0-dev

gr_mat_pascal

Synopsis#include <flint/gr_mat.h>
int gr_mat_pascal(gr_mat_t res, int triangular, gr_ctx_t ctx)source

Sets res to a Pascal matrix of binomial coefficients: for triangular 0 the symmetric matrix with entries \binom{i+j}{i} (the rows of Pascal's triangle along the antidiagonals), for 1 the upper triangular matrix with entries \binom{j}{i}, and for -1 the lower triangular matrix with entries \binom{i}{j}.

Cite this page

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