Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Dec 3, 2024
1 parent fd95813 commit 256dbdb
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ code to work with all of them? No problem! Comes with pre-made array context
implementations for:

- numpy
- cupy
- `PyOpenCL <https://documen.tician.de/pyopencl/array.html>`__
- `JAX <https://jax.readthedocs.io/en/latest/>`__
- `Pytato <https://documen.tician.de/pytato>`__ (for lazy/deferred evaluation)
Expand Down
8 changes: 4 additions & 4 deletions arraycontext/impl/cupy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from __future__ import annotations


"""
.. currentmodule:: arraycontext
A mod :`cupy`-based array context.
A :mod:`cupy`-based array context.
.. autoclass:: CupyArrayContext
"""

from __future__ import annotations


__copyright__ = """
Copyright (C) 2024 University of Illinois Board of Trustees
"""
Expand Down
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXOPTS ?= -W -n
SPHINXBUILD ?= python $(shell which sphinx-build)
SOURCEDIR = .
BUILDDIR = _build
Expand Down
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"pytest": ("https://docs.pytest.org/en/latest/", None),
"python": ("https://docs.python.org/3/", None),
"pytools": ("https://documen.tician.de/pytools", None),
"cupy": ("https://docs.cupy.dev/en/stable/", None),
}

# Some modules need to import things just so that sphinx can resolve symbols in
Expand Down
6 changes: 6 additions & 0 deletions doc/implementations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Array context based on :mod:`numpy`

.. automodule:: arraycontext.impl.numpy


Array context based on :mod:`cupy`
--------------------------------------------

.. automodule:: arraycontext.impl.cupy

Array context based on :mod:`pyopencl.array`
--------------------------------------------

Expand Down
3 changes: 2 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ code to work with all of them? No problem! Comes with pre-made array context
implementations for:

- :mod:`numpy`
- :mod:`cupy`
- :mod:`pyopencl`
- :mod:`jax.numpy`
- :mod:`pytato` (for lazy/deferred evaluation)
- Debugging
- Profiling

:mod:`arraycontext` started life as an array abstraction for use with the
:mod:`meshmode` unstrucuted discretization package.
:mod:`meshmode` unstructured discretization package.

Design Guidelines
-----------------
Expand Down

0 comments on commit 256dbdb

Please sign in to comment.