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

MWTree and MWNode documentation #219

Merged
merged 32 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ace243d
trigger rtd-build
stigrj Aug 30, 2023
9477962
Some docs
ilfreddy Aug 30, 2023
9bc915f
Use sphinx theme on rtd
stigrj Aug 30, 2023
a9d2a52
Empty documentation of MWOperator
ilfreddy Aug 30, 2023
c2552f2
Includes MWOperator in the docs
ilfreddy Aug 30, 2023
0a42618
remove .#IdentityConvolution.h from branch rtd-build
Gabrielgerez Aug 30, 2023
d6a3569
Starts documenting MWTree
ilfreddy Aug 30, 2023
64a8d57
Updates programmer manual
ilfreddy Aug 30, 2023
d5b9f74
Documenting MWTree
ilfreddy Aug 30, 2023
90e53ed
Documenting MWTree
ilfreddy Aug 30, 2023
7104c34
Documented MWTree
ilfreddy Aug 30, 2023
77dd799
First attempt to reference mwTransformUp and Down
Gabrielgerez Aug 30, 2023
f78688e
Add undocumented, protected and private member
Gabrielgerez Aug 30, 2023
b8b8ebc
Started documenting MWNode
ilfreddy Aug 30, 2023
a7349cd
Get the references right
Gabrielgerez Aug 30, 2023
22c413e
Just have documented classes in docs
Gabrielgerez Aug 30, 2023
1affe59
Documenting MWNode
ilfreddy Aug 30, 2023
2616b01
Generates MWNode docs
ilfreddy Aug 31, 2023
6fd0449
Working on MWNode docs
ilfreddy Aug 31, 2023
ba48b72
change file structure a bit
Gabrielgerez Aug 31, 2023
da2a168
add more file structure changes
Gabrielgerez Aug 31, 2023
1f7fcb8
Move stuff from index
Gabrielgerez Aug 31, 2023
f808726
minor changes to structure
Gabrielgerez Sep 4, 2023
dfc82f8
reduce the depth of the main index tree
Gabrielgerez Sep 4, 2023
5f5a947
Set a different file structure for future documenting purposes
Gabrielgerez Sep 4, 2023
383c994
Updates MWNode docs
ilfreddy Sep 19, 2023
046a976
Updates MWNode docs
ilfreddy Sep 19, 2023
d035e1b
Updates MWNode docs
ilfreddy Sep 19, 2023
1bb8859
Updates MWNode docs
ilfreddy Sep 19, 2023
ffde4bf
Updates MWNode docs
ilfreddy Sep 19, 2023
9af383a
MWNode documented
ilfreddy Sep 25, 2023
e5262aa
Fixes typos
ilfreddy Sep 26, 2023
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
10 changes: 4 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import shutil
import re


# -- Project information -----------------------------------------------------

project = 'MRCPP'
Expand Down Expand Up @@ -49,12 +50,9 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
html_theme = 'default'
else:
html_theme = 'sphinx_rtd_theme'
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
Expand Down
7 changes: 4 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The code can be found on `GitHub <https://github.com/MRChemSoft/mrcpp>`_.
install.rst

.. toctree::
:maxdepth: 2
:maxdepth: 1
:caption: Application Program Interface

mrcpp_api/introduction
Expand All @@ -42,6 +42,7 @@ The code can be found on `GitHub <https://github.com/MRChemSoft/mrcpp>`_.

.. toctree::
:maxdepth: 2
:caption: Programmers Manual
:caption: Programmer's Manual

programmers_manual/clang_tidy
programmers_manual/overview
programmers_manual/clang_tidy.rst
2 changes: 2 additions & 0 deletions docs/mrcpp_api/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,5 @@ the capture list (square brackets), see e.g. `cppreference.com
<http://en.cppreference.com/w/cpp/language/lambda>`_ for more
details on lambda functions and how to use the capture list.



2 changes: 2 additions & 0 deletions docs/mrcpp_api/mwoperators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ program by including:

#include "MRCPP/MWOperators"

.. doxygenclass:: mrcpp::MWOperator
:members:

ConvolutionOperator
-------------------
Expand Down
12 changes: 12 additions & 0 deletions docs/programmers_manual/MWNode.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---------------------
MWNode
---------------------

This is an introduction to the mwtree class. We write a small overarching summary of the class where we define the
algorithm/equation/structure reasoning for having this class or where it fits with the rest of the code.

.. doxygenclass:: mrcpp::MWNode
:members:
:protected-members:
:private-members:

11 changes: 11 additions & 0 deletions docs/programmers_manual/MWTree.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
------------------
MWTree
------------------

This is an introduction to the mwtree class. We write a small overarching summary of the class where we define the
algorithm/equation/structure reasoning for having this class or where it fits with the rest of the code.

.. doxygenclass:: mrcpp::MWTree
:members:
:protected-members:
:private-members:
4 changes: 0 additions & 4 deletions docs/programmers_manual/clang_tidy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

==================================
Programmers manual
==================================

----------
Clang-tidy
----------
Expand Down
12 changes: 12 additions & 0 deletions docs/programmers_manual/overview.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
===============
Manual overview
===============
The following sections show detailed documentation about the classes in MRCPP for programmers.

TODO: maybe add some low level theory/figures/algorithms before showing classes, could help to understand some of the more abstract methods

.. toctree::
:maxdepth: 1

MWTree
MWNode
20 changes: 17 additions & 3 deletions src/operators/IdentityConvolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@

namespace mrcpp {

/** @returns New IdentityConvolution object
/** @brief Constructor of the IdentityConvolution object
* @returns New IdentityConvolution object
* @param[in] mra: Which MRA the operator is defined
* @param[in] pr: Build precision, closeness to delta function
* @param[in] prec: Build precision, closeness to delta function
* @details This will project a kernel of a single gaussian with
* exponent sqrt(10/build_prec).
*/
Expand All @@ -51,6 +52,19 @@ IdentityConvolution<D>::IdentityConvolution(const MultiResolutionAnalysis<D> &mr
Printer::setPrintLevel(oldlevel);
}

/** @brief Constructor of the IdentityConvolution object in case of Periodic Boundary Conditions (PBC)
* @returns New IdentityConvolution object
* @param[in] mra: Which MRA the operator is defined
* @param[in] prec: Build precision, closeness to delta function
* @param[in] root: root scale of operator.
* @param[in] reach: width at root scale (applies to periodic boundary conditions)
* @details This will project a kernel of a single gaussian with
* exponent sqrt(10/build_prec). This version of the constructor
* is used for calculations within periodic boundary conditions (PBC).
* The \a root parameter is the coarsest negative scale at wich the operator
* is applied. The \a reach parameter is the bandwidth of the operator at
* the root scale. For details see \ref MWOperator
*/
template <int D>
IdentityConvolution<D>::IdentityConvolution(const MultiResolutionAnalysis<D> &mra, double prec, int root, int reach)
: ConvolutionOperator<D>(mra, root, reach) {
Expand All @@ -71,4 +85,4 @@ template class IdentityConvolution<1>;
template class IdentityConvolution<2>;
template class IdentityConvolution<3>;

} // namespace mrcpp
} // namespace mrcpp
7 changes: 7 additions & 0 deletions src/operators/MWOperator.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@

namespace mrcpp {

/** @class MWOperator
*
* @brief Fixme
*
* @details Fixme
*
*/
template <int D>
class MWOperator {
public:
Expand Down
Loading
Loading