FLINT3.7.0-dev

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)source
void 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)source

Test 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).