Skip to content

Commit 7134d11

Browse files
committed
Deploying to website-deployment from @ 2c83805 🚀
1 parent 862545b commit 7134d11

23 files changed

+458
-32
lines changed

.doctrees/environment.pickle

600 Bytes
Binary file not shown.
446 Bytes
Binary file not shown.
33 KB
Binary file not shown.

_sources/tutorial/hyperreduction.rst.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ is defined:
9191
auto trialBasis /* aka Phi */ = trialSpace.basisOfTranslatedSpace();
9292
auto hypredMatrix = /* (Phi^T rhsBasis) * pinv(sampledBasis) */;
9393
94-
// Construct hyperreducer functor
94+
/*
95+
* Construct hyperreducer functor with operator() that:
96+
* - Samples full RHS at sampleIndices
97+
* - Applies hypredMatrix to get reduced RHS
98+
*/
9599
ExplicitGalerkinHyperReducer hyperReducer(hypredMatrix, sampleIndices);
96100
97101
This code is implemented fully in the ``hyperreduction.h`` file
@@ -102,7 +106,8 @@ user-defined functor that implements an ``operator()`` method
102106
that takes in a sampled FOM RHS vector and outputs the reduced RHS vector.
103107

104108
Like with the other Pressio interfaces, you can define your
105-
hyperreducer in any way you like, as long as it meets the API requirements.
109+
hyperreducer in any way you like, as long as it meets the API requirements
110+
(namely, defining the ``operator()``).
106111

107112
Now that we have defined the hyper-reducer, we can
108113
build the ROM almost identically to before, but passing

_sources/tutorial/understand.rst.txt

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _top-of-page:
2+
13
How do I use Pressio to build and run a ROM?
24
============================================
35

@@ -8,12 +10,13 @@ Pressio.
810
We recommend reading this step-by-step explanation alongside
911
the source code itself, which is fully commented to provide
1012
additional context. The source code for this tutorial
11-
can be found in ``$SRC/full-tutorial/burgers.cpp``
13+
can be found in ``$SRC/full-tutorial/burgers.cpp``. It is
14+
also included :ref:`at the bottom of this page <full-source-file>` for reference.
1215

13-
Each step found below corresponds to the same-named
14-
section of the source code. After Step 0, we recommend
15-
you jump to the ``main`` function and follow along with
16-
the steps as they are explained.
16+
Each step found below (and in the Table of Contents to the right)
17+
corresponds to the same-named section of the source code.
18+
After Step 0, we recommend you jump to the ``main`` function
19+
and follow along with the steps as they are explained.
1720

1821
.. note::
1922

@@ -415,3 +418,17 @@ The plot will be saved to your current directory as
415418
You'll find that the hyper-reduced ROM does not perform quite as well
416419
as the standard ROM. But the tradeoff is that the hyper-reduced ROM
417420
is computationally cheaper to run, especially for large-scale systems.
421+
422+
:ref:`Go to top <top-of-page>`
423+
424+
.. _full-source-file:
425+
426+
Full Source File
427+
----------------
428+
429+
.. literalinclude:: ../../../full-tutorial/burgers.cpp
430+
:language: cpp
431+
:lines: 113-
432+
:linenos:
433+
434+
:ref:`Go to top <top-of-page>`

build.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ <h2>More details on dependencies<a class="headerlink" href="#more-details-on-dep
338338

339339
<a href="https://github.com/pradyunsg/furo">Furo</a>
340340
<div class="last-updated">
341-
Last updated on Feb 09, 2026</div>
341+
Last updated on Feb 10, 2026</div>
342342
</div>
343343
<div class="right-details">
344344

endtoend/readthisfirst.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ <h2>Outcomes<a class="headerlink" href="#outcomes" title="Link to this heading">
329329

330330
<a href="https://github.com/pradyunsg/furo">Furo</a>
331331
<div class="last-updated">
332-
Last updated on Feb 09, 2026</div>
332+
Last updated on Feb 10, 2026</div>
333333
</div>
334334
<div class="right-details">
335335

endtoend/swe_galerkin_default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ <h2>Step 5: things you can try<a class="headerlink" href="#step-5-things-you-can
491491

492492
<a href="https://github.com/pradyunsg/furo">Furo</a>
493493
<div class="last-updated">
494-
Last updated on Feb 09, 2026</div>
494+
Last updated on Feb 10, 2026</div>
495495
</div>
496496
<div class="right-details">
497497

endtoend/swe_galerkin_hypred_1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ <h3>Runtime comparison<a class="headerlink" href="#runtime-comparison" title="Li
471471

472472
<a href="https://github.com/pradyunsg/furo">Furo</a>
473473
<div class="last-updated">
474-
Last updated on Feb 09, 2026</div>
474+
Last updated on Feb 10, 2026</div>
475475
</div>
476476
<div class="right-details">
477477

endtoend/swe_lspg_default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ <h2>Step 4: process results<a class="headerlink" href="#step-4-process-results"
433433

434434
<a href="https://github.com/pradyunsg/furo">Furo</a>
435435
<div class="last-updated">
436-
Last updated on Feb 09, 2026</div>
436+
Last updated on Feb 10, 2026</div>
437437
</div>
438438
<div class="right-details">
439439

0 commit comments

Comments
 (0)