|
OMDc
2.0.0
created from 2320578 on deploy-documentation
|
15 #ifndef __INC_OMD_DATA_STORE__
16 #define __INC_OMD_DATA_STORE__
35 const Eigen::Ref<const Eigen::MatrixXd>
S;
50 typedef Eigen::Block<const Eigen::MatrixXd,Eigen::Dynamic,Eigen::Dynamic,true>
Block;
52 typedef Eigen::Block<const Eigen::Ref<const Eigen::MatrixXd>,Eigen::Dynamic,Eigen::Dynamic,
true>
RefBlock;
56 return S.leftCols(
m-1);
61 return S.rightCols(
m-1);
66 return LTS.leftCols(
m-1);
71 return LTS.rightCols(
m-1);
78 DataStore(
const Eigen::Ref<const Eigen::MatrixXd>
S, Eigen::Index
r);
interface to internal representation of OMD data
Definition: DataStore.hpp:25
const Eigen::Index m
number of snapshots
Definition: DataStore.hpp:28
void updateSystemMatrices(const Eigen::Ref< const Eigen::MatrixXd > L)
recomputes internal representations for given modes
const Eigen::MatrixXd & getYstar() const
part of Y'L that is orthogonal to X'L as R from QR
Definition: DataStore.hpp:136
DataStore(const Eigen::Ref< const Eigen::MatrixXd > S, Eigen::Index r)
standard contructor from snapshots
const Eigen::MatrixXd getSystemMatrix() const
system matrix of linear system M = (L'YX'L) inv(L'XX'L)
const RefBlock X() const
read-access to left snaps
Definition: DataStore.hpp:55
const Eigen::Index n
number of spatial locations (n > m)
Definition: DataStore.hpp:32
Eigen::MatrixXd LTS
product of current mode and snapshots [r x m]
Definition: DataStore.hpp:37
Optimal Mode Decomposition.
Definition: DataStore.hpp:21
Eigen::MatrixXd XTL_qr_rep
QR representation of X'L as [r x r] (upper triangular)
Definition: DataStore.hpp:43
const double normY
Frobenius norm of left matrices.
Definition: DataStore.hpp:39
const double getResidual() const
squared Frobenius residual: ||Y|| - ||(L'YX'L) inv(L'XX'L) (L'XY'L)||
Eigen::Block< const Eigen::Ref< const Eigen::MatrixXd >, Eigen::Dynamic, Eigen::Dynamic, true > RefBlock
short-hand for referenced matrix block
Definition: DataStore.hpp:52
const RefBlock Y() const
read-access to right snaps
Definition: DataStore.hpp:60
const Block LTX() const
read-access to projected left snaps
Definition: DataStore.hpp:65
Eigen::MatrixXd W
projector such that I - Z pinv(Z) = W W' with Z = X'L
Definition: DataStore.hpp:41
Eigen::Block< const Eigen::MatrixXd, Eigen::Dynamic, Eigen::Dynamic, true > Block
short-hand for matrix block expression
Definition: DataStore.hpp:50
Eigen::MatrixXd YTL_qr_rep_bottom
QR representation of Y'L as [r x r] (upper triangular)
Definition: DataStore.hpp:47
const Block LTY() const
read-access to projected right snaps
Definition: DataStore.hpp:70
const Eigen::MatrixXd & getProjector() const
projector onto orthog. space of X'L
Definition: DataStore.hpp:132
const Eigen::Index r
rank of reduced space
Definition: DataStore.hpp:30
const Eigen::Ref< const Eigen::MatrixXd > S
reference to snapshots (no data is stored)
Definition: DataStore.hpp:35
Eigen::MatrixXd YTL_qr_rep_top
QR representation of Y'L as [r x r] (top part)
Definition: DataStore.hpp:45