FLINT3.7.0-dev

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

Set each entry of res to ff applied to the corresponding entry of mat, to the entries of mat1 and mat2, or to the entry of mat and the scalar cc. 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-11-02).