Skip to content
index.rst 1.59 KiB
Newer Older
Welcome to boxtree's documentation!
===================================

boxtree is a package that, given some point locations in two or three
dimensions, sorts them into an adaptive quad/octree of boxes, efficiently, in
parallel, using OpenCL. It also computes geometric lookup tables and
generates FMM interaction lists.

Other places on the web to find boxtree stuff:

* `documentation page <https://documen.tician.de/boxtree>`__
* `Github (source code, bug tracker) <https://github.com/inducer/boxtree>`__

Now you obviously want to watch the library do something (at least mildly)
cool? Well, sit back and watch:

.. literalinclude:: ../examples/demo.py
   :start-after: STARTEXAMPLE
   :end-before: ENDEXAMPLE

This file is included in the :mod:`boxtree` distribution as
:download:`examples/demo.py <../examples/demo.py>`.  With some plotting code (not shown above, but
included in the demo file), you can see what's going on:

.. image:: images/tree.png

More importantly, perhaps, than being able to draw the tree, the :class:`boxtree.Tree`
Matt Wala's avatar
Matt Wala committed
data structure is now accessible via the ``tree`` variable above, and the connectivity
information needed for an FMM-like traversal is available in ``trav`` as
a :class:`boxtree.traversal.FMMTraversalInfo`.

Overview
--------

.. toctree::
    :maxdepth: 3

    intro
    tree
xywei's avatar
xywei committed
    tree-build
    traversal
    fmm
    lookup
Hao Gao's avatar
Hao Gao committed
    cost
    misc
    🚀 Github <https://github.com/inducer/boxtree>
    💾 Download Releases <https://pypi.python.org/pypi/boxtree>

Indices and tables
------------------

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`