gr_mat_entrywise_unary_op, gr_mat_entrywise_binary_op, gr_mat_entrywise_binary_op_scalar
Synopsis
#include <flint/gr_mat.h>int gr_mat_entrywise_unary_op(gr_mat_t res, gr_method_unary_op f, const gr_mat_t mat, gr_ctx_t ctx)sourceint gr_mat_entrywise_binary_op(gr_mat_t res, gr_method_binary_op f, const gr_mat_t mat1, const gr_mat_t mat2, gr_ctx_t ctx)sourceint gr_mat_entrywise_binary_op_scalar(gr_mat_t res, gr_method_binary_op f, const gr_mat_t mat, gr_srcptr c, gr_ctx_t ctx)sourceSet each entry of res to f applied to the corresponding entry of mat, to the entries of mat1 and mat2, or to the entry of mat and the scalar c. Return GR_DOMAIN if the shapes do not match. These are declared only when gr.h is included before gr_mat.h.
Cite this page
The FLINT team, “gr_mat_entrywise_unary_op, gr_mat_entrywise_binary_op, gr_mat_entrywise_binary_op_scalar (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_entrywise_unary_op.html (generated 2026-10-20).
@misc{flint-doc-gr-mat-gr-mat-entrywise-unary-op,
author = {{The FLINT team}},
title = {{gr\_mat\_entrywise\_unary\_op, gr\_mat\_entrywise\_binary\_op, gr\_mat\_entrywise\_binary\_op\_scalar (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_entrywise_unary_op.html},
note = {Generated 2026-10-20}
}