Skip to content

Commit

Permalink
update and fix urls to use https
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Aug 31, 2024
1 parent 37a8f26 commit 11f55b2
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 37 deletions.
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ performs constant folding, and it can compile its expressions into Python
bytecode for fast(er) execution.

If you are looking for a full-blown Computer Algebra System, look at
`sympy <http://pypi.python.org/pypi/sympy>`_ or
`PyGinac <http://pyginac.sourceforge.net/>`_. If you are looking for a
`sympy <https://pypi.org/project/sympy/>`__ or
`PyGinac <https://pyginac.sourceforge.net/>`__. If you are looking for a
basic, small and extensible set of symbolic operations, pymbolic may
well be for you.

Resources:

* `documentation <http://documen.tician.de/pymbolic>`_
* `download <http://pypi.python.org/pypi/pymbolic>`_ (via the package index)
* `source code via git <http://github.com/inducer/pymbolic>`_ (also bug tracker)
* `PyPI package <https://pypi.org/project/pymbolic/>`__
* `Documentation <https://documen.tician.de/pymbolic/>`__
* `Source code (GitHub) <https://github.com/inducer/pymbolic>`__
6 changes: 3 additions & 3 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ As a final example, we can now derive from *MyMapper* to multiply all
Pymbolic around the web
-----------------------

* `download <http://pypi.python.org/pypi/pymbolic>`_ (via the package index)
* `documentation <http://documen.tician.de/pymbolic>`_
* `source code via git <http://github.com/inducer/pymbolic>`_ (also bug tracker)
* `PyPI package <https://pypi.org/project/pymbolic/>`__
* `Documentation <https://documen.tician.de/pymbolic/>`__
* `Source code (GitHub) <https://github.com/inducer/pymbolic>`__

Contents
--------
Expand Down
34 changes: 17 additions & 17 deletions doc/misc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,23 @@ This command should install :mod:`pymbolic`::

pip install pymbolic

You may need to run this with :command:`sudo`.
If you don't already have `pip <https://pypi.python.org/pypi/pip>`_,
You may need to run this with :command:`sudo` if you are not in a virtual environment
(not recommended). If you don't already have `pip <https://pypi.org/project/pip>`__,
run this beforehand::

curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
python -m ensurepip

For a more manual installation, download the source, unpack it,
and say::
For a more manual installation, download the source, unpack it, and run::

python setup.py install
pip install .

This should also install all the required dependencies (see ``pyproject.toml``
for a complete list).

For development, you may want to install in `editable mode
<https://setuptools.pypa.io/en/latest/userguide/development_mode.html>`__::

pip install --no-build-isolation --editable .[test]

Why pymbolic when there's already sympy?
========================================
Expand Down Expand Up @@ -65,10 +71,10 @@ At any rate, to answer your question, here goes:

This part is a bit of a red herring though, since this can be
implemented for sympy (and, in fact, `I have
<https://github.com/inducer/pymbolic/blob/master/pymbolic/sympy_interface.py#L71>`_).
<https://github.com/inducer/pymbolic/blob/main/pymbolic/interop/sympy.py#L47>`__).
Also, I noticed that sympy's codegen module implements something similar (e.g.
`here
<https://github.com/sympy/sympy/blob/master/sympy/printing/fcode.py#L174>`_).
<https://github.com/sympy/sympy/blob/master/sympy/printing/fortran.py#L70>`__).
The remaining issue is that most of sympy's behaviors aren't available to
extend in this style.

Expand Down Expand Up @@ -98,7 +104,7 @@ Version 2015.3
.. note::

This version is currently under development. You can get snapshots from
Pymbolic's `git repository <https://github.com/inducer/pymbolic>`_
Pymbolic's `git repository <https://github.com/inducer/pymbolic>`__

* Add :mod:`pymbolic.geometric_algebra`.
* First documented version.
Expand Down Expand Up @@ -133,19 +139,13 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

Frequently Asked Questions
==========================

The FAQ is maintained collaboratively on the
`Wiki FAQ page <http://wiki.tiker.net/Pymbolic/FrequentlyAskedQuestions>`_.

Glossary
========

.. glossary::

mix-in
See `Wikipedia article <https://en.wikipedia.org/wiki/Mixin>`_.
See `Wikipedia article <https://en.wikipedia.org/wiki/Mixin>`__.

Be sure to mention the mix-in before the base classe being mixed in the
list of base classes. This way, the mix-in can override base class
Expand Down
6 changes: 3 additions & 3 deletions pymbolic/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
def integer_power(x, n, one=1):
"""Compute :math:`x^n` using only multiplications.
See also the `C2 wiki <http://c2.com/cgi/wiki?IntegerPowerAlgorithm>`_.
See also the `C2 wiki <https://wiki.c2.com/?IntegerPowerAlgorithm>`__.
"""

assert isinstance(n, int)
Expand Down Expand Up @@ -60,7 +60,7 @@ def extended_euclidean(q, r):
See also the
`Wikipedia article on the Euclidean algorithm
<https://en.wikipedia.org/wiki/Euclidean_algorithm>`_.
<https://en.wikipedia.org/wiki/Euclidean_algorithm>`__.
"""
import pymbolic.traits as traits

Expand Down Expand Up @@ -138,7 +138,7 @@ def fft(x, sign=1,
where :math:`z = \exp(-2i\pi\operatorname{sign}/n)` and ``n == len(x)``.
Works for all positive *n*.
See also `Wikipedia <http://en.wikipedia.org/wiki/Cooley-Tukey_FFT_algorithm>`_.
See also `Wikipedia <https://en.wikipedia.org/wiki/Cooley%E2%80%93Tukey_FFT_algorithm>`__.
"""

# revision 293076305
Expand Down
2 changes: 1 addition & 1 deletion pymbolic/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
class CompileMapper(StringifyMapper):
def map_constant(self, expr, enclosing_prec):
# work around numpy bug #1137 (locale-sensitive repr)
# http://projects.scipy.org/numpy/ticket/1137
# https://github.com/numpy/numpy/issues/1735
try:
import numpy
except ImportError:
Expand Down
8 changes: 4 additions & 4 deletions pymbolic/geometric_algebra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


__doc__ = """
See `Wikipedia <https://en.wikipedia.org/wiki/Geometric_algebra>`_ for an idea
See `Wikipedia <https://en.wikipedia.org/wiki/Geometric_algebra>`__ for an idea
of what this is.
.. versionadded:: 2013.2
Expand Down Expand Up @@ -139,7 +139,7 @@ def permutation_sign(p):
def bit_count(i):
"""Count the number of set bits in *i*."""

# nicked from http://wiki.python.org/moin/BitManipulation
# nicked from https://wiki.python.org/moin/BitManipulation

count = 0
while i:
Expand Down Expand Up @@ -408,11 +408,11 @@ class MultiVector:
[DFM] L. Dorst, D. Fontijne, and S. Mann, `Geometric Algebra for Computer
Science: An Object-Oriented Approach to Geometry
<https://books.google.com?isbn=0080553109>`_. Morgan Kaufmann, 2010.
<https://books.google.com?isbn=0080553109>`__. Morgan Kaufmann, 2010.
[HS] D. Hestenes and G. Sobczyk, `Clifford Algebra to Geometric Calculus: A
Unified Language for Mathematics and Physics
<https://books.google.com?isbn=9027725616>`_. Springer, 1987.
<https://books.google.com?isbn=9027725616>`__. Springer, 1987.
The object behaves much like the corresponding :class:`galgebra.mv.Mv`
object in :mod:`galgebra`, especially with respect to the supported
Expand Down
2 changes: 1 addition & 1 deletion pymbolic/imperative/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_dot_dependency_graph(

# deprecated
use_insn_ids=None,):
"""Return a string in the `dot <http://graphviz.org/>`_ language depicting
"""Return a string in the `dot <https://graphviz.org/>`__ language depicting
dependencies among kernel statements.
:arg statements: A sequence of statements, each of which is stringified by
Expand Down
2 changes: 1 addition & 1 deletion pymbolic/interop/maxima.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"""

# Inspired by similar code in Sage at:
# http://trac.sagemath.org/sage_trac/browser/sage/interfaces/maxima.py
# https://github.com/sagemath/sage/blob/master/src/sage/interfaces/maxima.py

import re
from sys import intern
Expand Down
2 changes: 1 addition & 1 deletion pymbolic/mapper/constant_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


class ConstantToNumpyConversionMapper(pymbolic.mapper.IdentityMapper):
"""Because of `this numpy bug <https://github.com/numpy/numpy/issues/9438>`_,
"""Because of `this numpy bug <https://github.com/numpy/numpy/issues/9438>`__,
sized :mod:`numpy` number (i.e. ones with definite bit width, such as
:class:`numpy.complex64`) have a low likelihood of surviving expression
construction.
Expand Down
2 changes: 1 addition & 1 deletion pymbolic/mapper/graphviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


class GraphvizMapper(WalkMapper):
"""Produces code for `dot <http://graphviz.org>`_ that yields
"""Produces code for `dot <https://graphviz.org>`__ that yields
an expression tree of the traversed expression(s).
.. automethod:: get_dot_code
Expand Down

0 comments on commit 11f55b2

Please sign in to comment.