libROM  v1.0
Data-driven physical simulation library
SVD.cpp
1 
11 // Description: An abstract class defining the interface to the generic SVD
12 // algorithm.
13 
14 #include "SVD.h"
15 
16 namespace CAROM {
17 
18 SVD::SVD(
19  Options options) :
20  d_dim(options.dim),
21  d_num_samples(0),
22  d_max_num_samples(options.max_num_samples),
23  d_basis(NULL),
24  d_basis_right(NULL),
25  d_U(NULL),
26  d_W(NULL),
27  d_S(NULL),
28  d_snapshots(NULL),
29  d_debug_algorithm(options.debug_algorithm)
30 {
31  CAROM_VERIFY(options.dim > 0);
32  CAROM_VERIFY(options.max_num_samples > 0);
33 }
34 
36 {
37  delete d_basis;
38  delete d_U;
39  delete d_S;
40  delete d_basis_right;
41  delete d_W;
42  delete d_snapshots;
43 }
44 
45 }
int dim
The dimension of the system on this processor.
Definition: Options.h:215
int max_num_samples
The maximum number of samples.
Definition: Options.h:220
Matrix * d_basis
The globalized basis vectors for the current time interval.
Definition: SVD.h:169
Matrix * d_snapshots
The globalized snapshot vectors for the current time interval.
Definition: SVD.h:209
~SVD()
Definition: SVD.cpp:35
Matrix * d_basis_right
The globalized right basis vectors for the current time interval.
Definition: SVD.h:177
Vector * d_S
The vector S which is small.
Definition: SVD.h:201
Matrix * d_U
The matrix U which is large.
Definition: SVD.h:185
Matrix * d_W
The matrix U which is large.
Definition: SVD.h:193