Skip to content

Commit 1214c40

Browse files
authored
Merge pull request #106 from Pressio/82_shifter
updated shifter documentation
2 parents 2fb1959 + c303744 commit 1214c40

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

romtools/trial_space_utils/shifter.py

+12-4
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,26 @@
4444
#
4545

4646
'''
47-
The Shifter class is used to create an affine offset in a trial space.
47+
___
48+
##**Notes**
49+
The vector defining the affine offset for a linear subspace is viewed as a matrix of shape
50+
$$\\mathbf{u}_{\\mathrm{shift}} \in \\mathbb{R}^{N_{\\mathrm{vars}} \\times N_{\mathrm{x}} }$$
51+
52+
___
53+
##**Theory**
4854
4955
*What is a shift vector, and why would I use it?* In ROMs, we restrict a state to belong to a low-dimensional affine
5056
trial space,
51-
$$\\mathbf{u} \\approx \\tilde{\\mathbf{u}} \\in \\mathcal{V}$$
57+
$$\\mathbf{u} \\approx \\tilde{\\mathbf{u}} \\in \\mathcal{V} + \\mathbf{u}_{\\mathrm{shift}}$$
5258
where
53-
$\\mathcal{V} \\equiv \\mathrm{range}(\\boldsymbol \\Phi) + \\mathbf{u}_{\\mathrm{shift}}$
54-
is the trial space. Here $\\mathbf{u}_{\\mathrm{shift}}$ defines an affine offset.
59+
$\\mathcal{V} \\equiv \\mathrm{range}(\\boldsymbol \\Phi) $. Here $\\mathbf{u}_{\\mathrm{shift}}$ defines an affine offset.
5560
Affine offsets can be useful for a variety of reasons, including satisfying boundary conditions, and satisfying initial
5661
conditions.
5762
5863
The Shifter class encapsulates the affine offset.
64+
65+
___
66+
##**API**
5967
'''
6068

6169
from typing import Tuple

0 commit comments

Comments
 (0)