Skip to content

Commit

Permalink
docs: fix reworked history
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Jul 24, 2023
1 parent bb20db5 commit 252e387
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
15 changes: 11 additions & 4 deletions docs/fode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ Single-Term Fractional Ordinary Differential Equations
History Handling
----------------

.. autoclass:: StateHistory
.. autoclass:: SourceHistory
.. autoclass:: State
.. autoclass:: History

.. autoclass:: ProductIntegrationState
.. autoclass:: VariableProductIntegrationHistory

.. autoclass:: FixedState
.. autoclass:: FixedSizeHistory

Interface
---------

Expand All @@ -20,18 +25,20 @@ Interface
.. autoclass:: StepCompleted

.. autoclass:: FractionalDifferentialEquationMethod
.. autoclass:: ProductIntegrationMethod

.. autofunction:: make_initial_condition
.. autofunction:: evolve
.. autofunction:: advance
.. autofunction:: make_initial_condition

.. autofunction:: make_predict_time_step_fixed
.. autofunction:: make_predict_time_step_graded

Caputo Derivative FODEs
=======================

.. autoclass:: CaputoDifferentialEquationMethod
.. autoclass:: CaputoProductIntegrationMethod

.. autoclass:: CaputoForwardEulerMethod
.. autoclass:: CaputoWeightedEulerMethod
.. autoclass:: CaputoPredictorCorrectorMethod
Expand Down
5 changes: 5 additions & 0 deletions docs/misc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Jacobi Polynomials

.. automodule:: pycaputo.jacobi

Generating Functions
--------------------

.. automodule:: pycaputo.generating_functions

Logging
-------

Expand Down
4 changes: 2 additions & 2 deletions pycaputo/derivatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class FractionalOperator:
"""

#: Order of the fractional operator, as real number
# :math:`\alpha \in \mathbb{R}`. A positive number would denote a derivative,
# while a negative number would denote a fractional integral instead.
#: :math:`\alpha \in \mathbb{R}`. A positive number would denote a derivative,
#: while a negative number would denote a fractional integral instead.
order: float

@property
Expand Down
2 changes: 2 additions & 0 deletions pycaputo/fode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
)
from pycaputo.fode.history import (
FixedSizeHistory,
FixedState,
History,
ProductIntegrationState,
State,
Expand All @@ -43,6 +44,7 @@
"CaputoWeightedEulerMethod",
"Event",
"FixedSizeHistory",
"FixedState",
"FractionalDifferentialEquationMethod",
"History",
"ProductIntegrationMethod",
Expand Down
2 changes: 1 addition & 1 deletion pycaputo/fode/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __len__(self) -> int:
@abstractmethod
def __getitem__(self, k: int) -> State:
"""
:returns: a :class:`StateHistory` from the *k*-th checkpoint.
:returns: a compound :class:`State` from the *k*-th checkpoint.
"""

@abstractmethod
Expand Down

0 comments on commit 252e387

Please sign in to comment.