diff --git a/doc/source/fmpz_mod_mat.rst b/doc/source/fmpz_mod_mat.rst index e667b240b0..896407d98e 100644 --- a/doc/source/fmpz_mod_mat.rst +++ b/doc/source/fmpz_mod_mat.rst @@ -2,6 +2,7 @@ **fmpz_mod_mat.h** -- matrices over integers mod n =============================================================================== +Unless indicated, functions may assume that the stored values are in the range `[0, n)`. The user can manipulate matrix entries directly, but must assume responsibility for normalising all values to the range `[0, n)`. Types, macros and constants ------------------------------------------------------------------------------- @@ -144,6 +145,11 @@ Input and output Comparison -------------------------------------------------------------------------------- +.. function:: int fmpz_mod_mat_equal(const fmpz_mod_mat_t mat1, const fmpz_mod_mat_t mat2, const fmpz_mod_ctx_t ctx) + + Returns nonzero if ``mat1`` and ``mat2`` have the same dimensions and elements, + and zero otherwise. The moduli are ignored. + .. function:: int fmpz_mod_mat_is_zero(const fmpz_mod_mat_t mat, const fmpz_mod_ctx_t ctx) diff --git a/doc/source/nmod_mat.rst b/doc/source/nmod_mat.rst index b1da8f22ca..5d2e0ebca1 100644 --- a/doc/source/nmod_mat.rst +++ b/doc/source/nmod_mat.rst @@ -31,8 +31,7 @@ perform some kind of division, solving, or Gaussian elimination in functions that only perform basic manipulation and ring operations (e.g. transpose and matrix multiplication). -The user can manipulate matrix entries directly, but must assume -responsibility for normalising all values to the range `[0, n)`. +Unless indicated, functions may assume that the stored values are in the range `[0, n)`. The user can manipulate matrix entries directly, but must assume responsibility for normalising all values to the range `[0, n)`. Types, macros and constants -------------------------------------------------------------------------------