15 #ifndef __INC_OMD_DATA_STORE__
16 #define __INC_OMD_DATA_STORE__
35 const Eigen::Ref<const Eigen::MatrixXd> S;
41 double residual_helper;
48 typedef Eigen::Block<const Eigen::MatrixXd,Eigen::Dynamic,Eigen::Dynamic,true>
Block;
50 typedef Eigen::Block<const Eigen::Ref<const Eigen::MatrixXd>,Eigen::Dynamic,Eigen::Dynamic,
true>
RefBlock;
54 return S.leftCols(
m-1);
59 return S.rightCols(
m-1);
64 return LTS.leftCols(
m-1);
69 return LTS.rightCols(
m-1);
74 DataStore(
const Eigen::Ref<const Eigen::MatrixXd> S, Eigen::Index
r);
interface to internal representation of OMD data
Definition: DataStore.hpp:25
const Block LTX() const
read-access to projected left snaps
Definition: DataStore.hpp:63
const Block LTY() const
read-access to projected right snaps
Definition: DataStore.hpp:68
void updateSystemMatrices(const Eigen::Ref< const Eigen::MatrixXd > L)
recomputes internal representations for given modes
const RefBlock X() const
read-access to left snaps
Definition: DataStore.hpp:53
const Eigen::Index m
number of snapshots
Definition: DataStore.hpp:28
Eigen::Block< const Eigen::MatrixXd, Eigen::Dynamic, Eigen::Dynamic, true > Block
short-hand for matrix block expression
Definition: DataStore.hpp:48
const RefBlock Y() const
read-access to right snaps
Definition: DataStore.hpp:58
Eigen::Block< const Eigen::Ref< const Eigen::MatrixXd >, Eigen::Dynamic, Eigen::Dynamic, true > RefBlock
short-hand for referenced matrix block
Definition: DataStore.hpp:50
const double getResidual() const
squared Frobenius residual: ||Y|| - ||(L'YX'L) inv(L'XX'L) (L'XY'L)||
const Eigen::Index n
number of spatial locations (n > m)
Definition: DataStore.hpp:32
const Eigen::MatrixXd & getProjector() const
projector onto orthog. space of X'L
const Eigen::MatrixXd & getSystemMatrix() const
system matrix of linear system M = (L'YX'L) inv(L'XX'L)
DataStore(const Eigen::Ref< const Eigen::MatrixXd > S, Eigen::Index r)
standard contructor from snapshots
const Eigen::Index r
rank of reduced space
Definition: DataStore.hpp:30
Optimal Mode Decomposition.
Definition: DataStore.hpp:21