Skip to content

Commit a6d92ef

Browse files
committed
clarification on the MAX_MODULUS of float matrices
1 parent 443b754 commit a6d92ef

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/sage/matrix/matrix_modn_dense_double.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ cdef class Matrix_modn_dense_double(Matrix_modn_dense_template):
5151
5252
These are matrices with integer entries mod ``n`` represented as
5353
floating-point numbers in a 64-bit word for use with LinBox routines.
54-
This allows for ``n`` up to `2^{23}`. The analogous
55-
``Matrix_modn_dense_float`` class is used for smaller moduli.
54+
This allows for ``n`` up to `2^{23}`. By default, the analogous
55+
``Matrix_modn_dense_float`` class is used for smaller moduli, specifically
56+
for ``n`` up to `2^{8}`.
5657
5758
Routines here are for the most basic access, see the
5859
``matrix_modn_dense_template.pxi`` file for higher-level routines.

src/sage/matrix/matrix_modn_dense_float.pyx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# distutils: library_dirs = CBLAS_LIBDIR
44
# distutils: include_dirs = CBLAS_INCDIR
55
r"""
6-
Dense matrices over `\ZZ/n\ZZ` for `n < 2^{11}` using LinBox's ``Modular<float>``
6+
Dense matrices over `\ZZ/n\ZZ` for `n < 2^{8}` using LinBox's ``Modular<float>``
77
88
AUTHORS:
99
- Burcin Erocal
@@ -44,12 +44,13 @@ include "matrix_modn_dense_template.pxi"
4444

4545
cdef class Matrix_modn_dense_float(Matrix_modn_dense_template):
4646
r"""
47-
Dense matrices over `\ZZ/n\ZZ` for `n < 2^{11}` using LinBox's ``Modular<float>``
47+
Dense matrices over `\ZZ/n\ZZ` for `n < 2^{8}` using LinBox's ``Modular<float>``
4848
4949
These are matrices with integer entries mod ``n`` represented as
5050
floating-point numbers in a 32-bit word for use with LinBox routines.
51-
This allows for ``n`` up to `2^{11}`. The
52-
``Matrix_modn_dense_double`` class is used for larger moduli.
51+
This could allow for ``n`` up to `2^{11}`, but for performance reasons
52+
this is limited to ``n`` up to `2^{8}`, and for larger moduli the
53+
``Matrix_modn_dense_double`` class is used.
5354
5455
Routines here are for the most basic access, see the
5556
``matrix_modn_dense_template.pxi`` file for higher-level routines.

0 commit comments

Comments
 (0)