Skip to content

Commit 0cae160

Browse files
committed
documentation
1 parent fbabf32 commit 0cae160

4 files changed

Lines changed: 24 additions & 11 deletions

File tree

doc/source/acb_theta.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**acb_theta** -- Riemann theta functions
2+
===============================================================================
3+
4+
.. autofunction :: flint.types.acb_theta.acb_theta
5+

doc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Matrix types
6161
fmpz_mod_mat.rst
6262
arb_mat.rst
6363
acb_mat.rst
64+
acb_theta.rst
6465

6566
Polynomial types
6667
................

src/flint/types/acb_mat.pyx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -818,15 +818,18 @@ cdef class acb_mat(flint_mat):
818818
def theta(tau, z, square=False):
819819
r"""
820820
Computes the vector valued Riemann theta function
821-
`(\theta_{a,b}{z, tau) : a, b \in \{0,1\}^{g}\)` or its squares.
822-
This is a wrapper for the C-function `acb_theta_all` and it follows the
823-
same conventions for the ordering of the theta characteristics.
821+
`(\theta_{a,b}(z, \tau) : a, b \in \{0,1\}^{g})` or its squares,
822+
where `\tau` is given by ``self``.
823+
824+
This is a wrapper for :func:`.acb_theta.acb_theta`; see the
825+
documentation for that method for details and examples.
826+
This follows the same conventions of the C-function
827+
`acb_theta_all <https://flintlib.org/doc/acb_theta.html#c.acb_theta_all>`_
828+
for the ordering of the theta characteristics.
824829
825-
This is a wrapper for :meth:`.acb_theta.acb_mat_theta`; see the
826-
documentation for that method for details for examples.
827830
"""
828831
try:
829-
from .acb_theta import acb_mat_theta
832+
from .acb_theta import acb_theta
830833
except ImportError:
831834
raise NotImplementedError("acb_mat.theta needs Flint >= 3.1.0")
832-
return acb_mat_theta(z, tau, square=square)
835+
return acb_theta(z, tau, square=square)

src/flint/types/acb_theta.pyx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ from flint.flintlib.acb cimport *
55
from flint.flintlib.acb_mat cimport *
66
from flint.flintlib.acb_theta cimport *
77

8-
def acb_mat_theta(acb_mat z, acb_mat tau, ulong square=False):
8+
def acb_theta(acb_mat z, acb_mat tau, ulong square=False):
99
r"""
10-
Computes the vector valued Riemann theta function `(\theta_{a,b}{z, tau) : a, b \in \{0,1\}^{g}\)` or its squares.
11-
This is a wrapper for the function `acb_theta_all` and it follows the same conventions for the ordering of the theta characteristics.
10+
Computes the vector valued Riemann theta function
11+
`(\theta_{a,b}(z, \tau) : a, b \in \{0,1\}^{g})` or its squares.
1212
13-
This should be used via method `acb_mat.theta` with the order of `z` and `tau` swapped,
13+
This is a wrapper for the C-function
14+
`acb_theta_all <https://flintlib.org/doc/acb_theta.html#c.acb_theta_all>`_
15+
and it follows the same conventions for the ordering of the theta characteristics.
16+
17+
This should be used via the method :meth:`.acb_mat.theta`, explicitly ``tau.theta(z)``.
1418
1519
>>> from flint import acb, acb_mat, showgood
1620
>>> z = acb(1+1j); tau = acb(1.25+3j)

0 commit comments

Comments
 (0)