_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)sourceca_field_ptr _ca_mat_same_field2(const ca_mat_t A, const ca_mat_t B, ca_ctx_t ctx)sourceIf 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).
@misc{flint-doc-ca-mat-ca-mat-same-field,
author = {{The FLINT team}},
title = {{\_ca\_mat\_same\_field, \_ca\_mat\_same\_field2 (ca\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ca_mat/_ca_mat_same_field.html},
note = {Generated 2026-10-20}
}