FLINT3.7.0-dev

_ca_mat_same_field, _ca_mat_same_field2

Synopsis#include <flint/ca_mat.h>
ca_field_ptr _ca_mat_same_field(const ca_mat_t A, ca_ctx_t ctx)source
ca_field_ptr _ca_mat_same_field2(const ca_mat_t A, const ca_mat_t B, ca_ctx_t ctx)source

If all entries of A (and B) are rational numbers or elements of one common field K, returns K (the field \mathbb{Q} if all entries are rational); returns NULL if the entries lie in different fields or one is a special value.

Cite this page

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