Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partially revert #2 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Code generation system
:members:
:special-members:

.. autoclass:: C89CodePrinter
.. autoclass:: CPrinter
:members:
:special-members:

Expand Down
2 changes: 1 addition & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ definitions can be given to the :py:func:`optimize` function, then a
mathematically-equivalent list of tensor definitions will be returned, possibly
incurring much less arithmetic cost. For any iterable of tensor definitions,
whether from the gristmill optimizer or not, the code printers
:py:class:`FortranPrinter`, :py:class:`C89CodePrinter`, and
:py:class:`FortranPrinter`, :py:class:`CPrinter`, and
:py:class:`EinsumPrinter` can be used to generate code automatically. The exact
form of the generated code is very tunable.
4 changes: 2 additions & 2 deletions gristmill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from .generate import (
BasePrinter, NaiveCodePrinter, C89CodePrinter, FortranPrinter,
BasePrinter, NaiveCodePrinter, CPrinter, FortranPrinter,
EinsumPrinter, mangle_base
)
from .optimize import optimize, verify_eval_seq, ContrStrat, RepeatedTermsStrat
Expand All @@ -21,7 +21,7 @@
'BasePrinter',
'mangle_base',
'NaiveCodePrinter',
'C89CodePrinter',
'CPrinter',
'FortranPrinter',
'EinsumPrinter'
]