gr_mat_test_approx_mul_max_norm, gr_mat_test_approx_mul_pos_entrywise_accurate
Synopsis
#include <flint/gr_mat.h>void gr_mat_test_approx_mul_max_norm(gr_method_mat_binary_op mul_impl, gr_srcptr rel_tol, flint_rand_t state, slong iters, slong maxn, gr_ctx_t ctx)sourcevoid gr_mat_test_approx_mul_pos_entrywise_accurate(gr_method_mat_binary_op mul_impl, gr_srcptr rel_tol, flint_rand_t state, slong iters, slong maxn, gr_ctx_t ctx)sourceTest the accuracy of a matrix multiplication over an approximate (floating-point) ring: the first checks \|C - AB\| \le \|A\| \|B\| \cdot \mathit{rel\_tol} in the max norm against classical multiplication; the second generates matrices with nonnegative entries and checks that every entry has relative error at most \mathit{rel\_tol}.
Cite this page
The FLINT team, “gr_mat_test_approx_mul_max_norm, gr_mat_test_approx_mul_pos_entrywise_accurate (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_test_approx_mul_max_norm.html (generated 2026-10-20).
@misc{flint-doc-gr-mat-gr-mat-test-approx-mul-max-norm,
author = {{The FLINT team}},
title = {{gr\_mat\_test\_approx\_mul\_max\_norm, gr\_mat\_test\_approx\_mul\_pos\_entrywise\_accurate (gr\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_mat/gr_mat_test_approx_mul_max_norm.html},
note = {Generated 2026-10-20}
}