FLINT3.7.0-dev

ca_mat_add_ca, ca_mat_sub_ca

Synopsis#include <flint/ca_mat.h>
void ca_mat_add_ca(ca_mat_t y, const ca_mat_t a, const ca_t x, ca_ctx_t ctx)source
void ca_mat_sub_ca(ca_mat_t y, const ca_mat_t a, const ca_t x, ca_ctx_t ctx)source

Sets y to a + x I or a - x I, that is, adds or subtracts the scalar x on the main diagonal.

Cite this page

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