|
OMDc
1.0.0
created from c01aff8 on deploy-documentation
|
15 #ifndef __INC_OMDC_DATA_STORE__
16 #define __INC_OMDC_DATA_STORE__
70 const Eigen::Ref<const Eigen::MatrixXd> S;
72 const Eigen::Ref<const Eigen::MatrixXd> U;
76 const Eigen::MatrixXd Z;
82 Eigen::MatrixXd ZTXTL_qr_rep;
84 Eigen::MatrixXd ZTYTL_qr_rep_top;
86 Eigen::MatrixXd ZTYTL_qr_rep_bottom;
89 typedef Eigen::Block<const Eigen::MatrixXd,Eigen::Dynamic,Eigen::Dynamic,true>
Block;
91 typedef Eigen::Block<const Eigen::Ref<const Eigen::MatrixXd>,Eigen::Dynamic,Eigen::Dynamic,
true>
RefBlock;
95 return S.leftCols(
m-1);
100 return S.rightCols(
m-1);
105 return LTS.leftCols(
m-1);
110 return LTS.rightCols(
m-1);
116 DataStore(
const Eigen::Ref<const Eigen::MatrixXd> S,
const Eigen::Ref<const Eigen::MatrixXd> U, Eigen::Index
r);
const double getResidual() const
residual of squared Fobenius norm || Y - LML'X - LPU ||
Eigen::Block< const Eigen::Ref< const Eigen::MatrixXd >, Eigen::Dynamic, Eigen::Dynamic, true > RefBlock
short-hand for referenced matrix block
Definition: DataStore.hpp:91
const Eigen::MatrixXd getSystemMatrix() const
system matrix of linear system from internal representation
const RefBlock X() const
read-access to 'left' snaps
Definition: DataStore.hpp:94
const Block LTX() const
read-access to projected input 'left' snaps
Definition: DataStore.hpp:104
const Block LTY() const
read-access to projected output 'right' snaps
Definition: DataStore.hpp:109
Eigen::Block< const Eigen::MatrixXd, Eigen::Dynamic, Eigen::Dynamic, true > Block
short-hand for matrix block expression
Definition: DataStore.hpp:89
Optimal Mode Decomposition for control.
Definition: DataStore.hpp:43
void updateSystemMatrices(const Eigen::Ref< const Eigen::MatrixXd > L)
recomputes internal representations for given modes
const Eigen::Index p
number of inputs
Definition: DataStore.hpp:67
const Eigen::MatrixXd & getYstar() const
part of Z'Y'L that is orthogonal to Z'X'L The internal representation of the data reads
interface to internal representation of OMDc data
Definition: DataStore.hpp:58
const Eigen::MatrixXd getInputMatrix() const
input matrix of linear system from internal representation
const Eigen::MatrixXd & getProjector() const
get state projector
const Eigen::Index n
number of spatial locations (n > m)
Definition: DataStore.hpp:65
const Eigen::VectorXd getInitialState() const
computes intial state from identified system
const Eigen::Index m
number of snapshots
Definition: DataStore.hpp:61
const Eigen::Index r
rank of reduced space
Definition: DataStore.hpp:63
DataStore(const Eigen::Ref< const Eigen::MatrixXd > S, const Eigen::Ref< const Eigen::MatrixXd > U, Eigen::Index r)
standard contructor from snapshots and inputs
const RefBlock Y() const
read-access to 'right' snaps
Definition: DataStore.hpp:99